diff --git a/src/utils/menu.ts b/src/utils/menu.ts index 1df818e5..d84be2d0 100644 --- a/src/utils/menu.ts +++ b/src/utils/menu.ts @@ -227,12 +227,13 @@ export function filterAsnycRouter(asyncRouterMap: any, parentCode = '', level = _route.children = _menusData silder.children = _silderMenus const showChildren = _route.children.some((r: any) => !r.meta.hideInMenu) - if (showChildren) { + + if (showChildren && _route.children.length) { _route.component = level === 1 ? BasicLayoutPage : BlankLayoutPage _route.redirect = route.children[0].url } else { const myComponent = resolveComponent(route.code) - _route.component = myComponent ? myComponent : BlankLayoutPage; + // _route.component = myComponent ? myComponent : BlankLayoutPage; if (!!myComponent) { _route.component = myComponent; _route.children.map((r: any) => menusData.push(r)) diff --git a/src/views/northbound/AliCloud/Detail/doc.vue b/src/views/Northbound/AliCloud/Detail/doc.vue similarity index 100% rename from src/views/northbound/AliCloud/Detail/doc.vue rename to src/views/Northbound/AliCloud/Detail/doc.vue diff --git a/src/views/northbound/AliCloud/Detail/index.vue b/src/views/Northbound/AliCloud/Detail/index.vue similarity index 100% rename from src/views/northbound/AliCloud/Detail/index.vue rename to src/views/Northbound/AliCloud/Detail/index.vue diff --git a/src/views/northbound/AliCloud/index.vue b/src/views/Northbound/AliCloud/index.vue similarity index 100% rename from src/views/northbound/AliCloud/index.vue rename to src/views/Northbound/AliCloud/index.vue diff --git a/src/views/northbound/DuerOS/Detail/command/EditTable.vue b/src/views/Northbound/DuerOS/Detail/command/EditTable.vue similarity index 100% rename from src/views/northbound/DuerOS/Detail/command/EditTable.vue rename to src/views/Northbound/DuerOS/Detail/command/EditTable.vue diff --git a/src/views/northbound/DuerOS/Detail/command/index.vue b/src/views/Northbound/DuerOS/Detail/command/index.vue similarity index 100% rename from src/views/northbound/DuerOS/Detail/command/index.vue rename to src/views/Northbound/DuerOS/Detail/command/index.vue diff --git a/src/views/northbound/DuerOS/Detail/doc.vue b/src/views/Northbound/DuerOS/Detail/doc.vue similarity index 100% rename from src/views/northbound/DuerOS/Detail/doc.vue rename to src/views/Northbound/DuerOS/Detail/doc.vue diff --git a/src/views/northbound/DuerOS/Detail/index.vue b/src/views/Northbound/DuerOS/Detail/index.vue similarity index 100% rename from src/views/northbound/DuerOS/Detail/index.vue rename to src/views/Northbound/DuerOS/Detail/index.vue diff --git a/src/views/northbound/DuerOS/index.vue b/src/views/Northbound/DuerOS/index.vue similarity index 100% rename from src/views/northbound/DuerOS/index.vue rename to src/views/Northbound/DuerOS/index.vue