瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
f5e59b217b
共有 1 個文件被更改,包括 14 次插入14 次删除
  1. 14 14
      src/permission.js

+ 14 - 14
src/permission.js

@@ -62,13 +62,13 @@ router.beforeEach(async (to, from, next) => {
           lay.children = []
           for (var route of store.getters.menus) {
             if (route.code == "bigViews") {
-              router.addRoutes([{
-                path: '/bigViews',
-                code: "bigViews",
-                name: "bigViews",
-                component: _import(`${route.fullUrl}/index`),
-                hidden: true
-              }])
+              // router.addRoutes([{
+              //   path: '/bigViews',
+              //   code: "bigViews",
+              //   name: "bigViews",
+              //   component: _import(`${route.fullUrl}/index`),
+              //   hidden: true
+              // }])
             } else if (moduleObj[route.code] !== false) {
               lay.children.push(...buildRoute(route))
             }
@@ -78,13 +78,13 @@ router.beforeEach(async (to, from, next) => {
           global.antRouter = []
           for (var route of store.getters.menus) {
             if (route.code == "bigViews") {
-              global.antRouter.push({
-                path: '/bigViews',
-                code: "bigViews",
-                name: "bigViews",
-                component: _import(`${route.fullUrl}/index`),
-                hidden: true
-              })
+              // global.antRouter.push({
+              //   path: '/bigViews',
+              //   code: "bigViews",
+              //   name: "bigViews",
+              //   component: _import(`${route.fullUrl}/index`),
+              //   hidden: true
+              // })
             } else if (moduleObj[route.code] !== false) {
               global.antRouter.push(...buildRoute(route, '', false))
             }