diff --git a/src/app/pages/body/index/index.component.html b/src/app/pages/body/index/index.component.html index 6e70ce6..c17ef31 100644 --- a/src/app/pages/body/index/index.component.html +++ b/src/app/pages/body/index/index.component.html @@ -46,7 +46,7 @@
  • diff --git a/src/app/pages/body/index/index.component.ts b/src/app/pages/body/index/index.component.ts index 628f8c6..bd632ef 100644 --- a/src/app/pages/body/index/index.component.ts +++ b/src/app/pages/body/index/index.component.ts @@ -66,6 +66,9 @@ export class IndexComponent { // 侧边菜单展示开关 isCollapse = true; + // 当前顶级菜单 + currentParentMenu: any = {}; + constructor( private storage: BrowserStorageService, private message: NzMessageService, @@ -87,6 +90,7 @@ export class IndexComponent { this.router.navigateByUrl('/admin/index').finally(); } + this.currentParentMenu = item; this.leftMenuData = item['childMenuList']; this.isCollapse = item['menuName'] === '首页';