Browse Source

eslint报错

zhengnaiwen_citu 3 months ago
parent
commit
66264addf4
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/App.vue

+ 6 - 2
src/App.vue

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