Browse Source

更新处理全局小

lex-xin 3 years ago
parent
commit
49dbd38e52
2 changed files with 6 additions and 2 deletions
  1. 3 1
      src/main.js
  2. 3 1
      src/store/modules/permission.js

+ 3 - 1
src/main.js

@@ -84,7 +84,8 @@ ElementUI.Select.watch.value = function (newValue, oldValue) {
     })
   }
 }
-Vue.use(ElementUI)
+
+// Vue.use(ElementUI)
 Vue.use(installComponents)
 // 命名根据需要,DonMessage只是在文章中使用
 export const $message = new DonMessage()
@@ -124,6 +125,7 @@ Vue.use(VueAMap)
 
 // 检测浏览器是否缩放
 // import '@/utils/zoom'
+Vue.prototype.$ELEMENT = { size: 'small', zIndex: 3000 }
 // set ElementUI lang to EN
 Vue.use(ElementUI, { locale })
 

+ 3 - 1
src/store/modules/permission.js

@@ -824,7 +824,9 @@ function setDetailRoute(accessedRoutes) {
       }])
     }
     if(route.path == '/federationManager') {
-      route.children = []
+      if(!route.children) {
+        route.children = []
+      }
       route.children = route.children.concat([{
         name: '添加&修改',
         path: 'organOperation',