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