diff --git a/src/layout/components/components/children-banner.vue b/src/layout/components/components/children-banner.vue index d210bfc8..642d0991 100644 --- a/src/layout/components/components/children-banner.vue +++ b/src/layout/components/components/children-banner.vue @@ -8,18 +8,32 @@ - @Link https://gitee.com/xmo/mineadmin-vue --> + + + diff --git a/src/layout/components/components/children-menu.vue b/src/layout/components/components/children-menu.vue index bcbc60bf..5262ac52 100644 --- a/src/layout/components/components/children-menu.vue +++ b/src/layout/components/components/children-menu.vue @@ -51,9 +51,11 @@ const routerPush = (menu) => { if (menu.meta && menu.meta.type === 'L') { window.open(menu.path) - }else { + } else if (menu.path && menu.component) { router.push(menu.path) tagStore.addTag({ name: menu.name, title: menu.meta.title, path: menu.path }) + } else { + console.warn('菜单未配置组件或者path') } } diff --git a/src/layout/components/components/sub-menu.vue b/src/layout/components/components/sub-menu.vue index 72c9aa79..52d1e3fb 100644 --- a/src/layout/components/components/sub-menu.vue +++ b/src/layout/components/components/sub-menu.vue @@ -16,7 +16,7 @@