update: 重命名Northbound

This commit is contained in:
xieyonghong 2023-02-22 14:15:00 +08:00
parent 643067656d
commit 9d8b31713c
9 changed files with 3 additions and 2 deletions

View File

@ -227,12 +227,13 @@ export function filterAsnycRouter(asyncRouterMap: any, parentCode = '', level =
_route.children = _menusData _route.children = _menusData
silder.children = _silderMenus silder.children = _silderMenus
const showChildren = _route.children.some((r: any) => !r.meta.hideInMenu) const showChildren = _route.children.some((r: any) => !r.meta.hideInMenu)
if (showChildren) {
if (showChildren && _route.children.length) {
_route.component = level === 1 ? BasicLayoutPage : BlankLayoutPage _route.component = level === 1 ? BasicLayoutPage : BlankLayoutPage
_route.redirect = route.children[0].url _route.redirect = route.children[0].url
} else { } else {
const myComponent = resolveComponent(route.code) const myComponent = resolveComponent(route.code)
_route.component = myComponent ? myComponent : BlankLayoutPage; // _route.component = myComponent ? myComponent : BlankLayoutPage;
if (!!myComponent) { if (!!myComponent) {
_route.component = myComponent; _route.component = myComponent;
_route.children.map((r: any) => menusData.push(r)) _route.children.map((r: any) => menusData.push(r))