浏览代码

eslint报错

zhengnaiwen_citu 3 月之前
父节点
当前提交
77443241be
共有 1 个文件被更改,包括 3 次插入6 次删除
  1. 3 6
      src/App.vue

+ 3 - 6
src/App.vue

@@ -7,12 +7,9 @@ import autoRefresh from './update'
 export default {
 export default {
   name: 'App',
   name: 'App',
   created () {
   created () {
-    try {
-      // 更新机构树
-      this.$store.dispatch('system/getOrganizationTree')
-    } catch (error) {
-      // console.log(error)
-    }
+    this.$store.dispatch('system/getOrganizationTree').catch(error => {
+      console.log(error)
+    })
     if (process.env.NODE_ENV !== 'production') {
     if (process.env.NODE_ENV !== 'production') {
       return
       return
     }
     }