浏览代码

更新处理全局小

lex-xin 3 年之前
父节点
当前提交
49dbd38e52
共有 2 个文件被更改,包括 6 次插入2 次删除
  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',