|
@@ -62,13 +62,13 @@ router.beforeEach(async (to, from, next) => {
|
|
lay.children = []
|
|
lay.children = []
|
|
for (var route of store.getters.menus) {
|
|
for (var route of store.getters.menus) {
|
|
if (route.code == "bigViews") {
|
|
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) {
|
|
} else if (moduleObj[route.code] !== false) {
|
|
lay.children.push(...buildRoute(route))
|
|
lay.children.push(...buildRoute(route))
|
|
}
|
|
}
|
|
@@ -78,13 +78,13 @@ router.beforeEach(async (to, from, next) => {
|
|
global.antRouter = []
|
|
global.antRouter = []
|
|
for (var route of store.getters.menus) {
|
|
for (var route of store.getters.menus) {
|
|
if (route.code == "bigViews") {
|
|
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) {
|
|
} else if (moduleObj[route.code] !== false) {
|
|
global.antRouter.push(...buildRoute(route, '', false))
|
|
global.antRouter.push(...buildRoute(route, '', false))
|
|
}
|
|
}
|