From 2901e848c4c17a258ceb38d3a968cf656b8a607e Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 19 Apr 2024 16:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/body/index/index.component.html | 2 +- src/app/pages/body/index/index.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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'] === '首页';