|
|
|
@ -79,7 +79,6 @@ function filterModulesRouter (routerMap, modules) { |
|
|
|
|
if (route.children && route.children.length) { |
|
|
|
|
route.children = filterModulesRouter(route.children, modules) |
|
|
|
|
} |
|
|
|
|
console.log(route, route.moduleKey || '', modules) |
|
|
|
|
return checkModuleKey(route, modules) && checkModules(route, modules) |
|
|
|
|
}) |
|
|
|
|
return moduleRouters |
|
|
|
@ -152,7 +151,7 @@ function setPrimaryMenuRedirect (routerMap) { |
|
|
|
|
* 设置默认的首页 |
|
|
|
|
* @param {*} routerMap |
|
|
|
|
*/ |
|
|
|
|
function setIndexRedirect (routerMap) { |
|
|
|
|
function setIndexRedirect(routerMap) { |
|
|
|
|
const root = routerMap[0] |
|
|
|
|
if (root.children && root.children.length) { |
|
|
|
|
const item = root.children[0] |
|
|
|
|