From 8b97a0c09b65a55bae0eb8875dd58c2b101cb08c Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期二, 17 十二月 2024 14:26:23 +0800
Subject: [PATCH] 优化TopNav内链菜单点击没有高亮(IB8WHJ)
---
src/store/modules/permission.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index c1c862b..8a2b1a9 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -101,6 +101,10 @@
}
if (lastRouter) {
el.path = lastRouter.path + '/' + el.path
+ if (el.children && el.children.length) {
+ children = children.concat(filterChildren(el.children, el))
+ return
+ }
}
children = children.concat(el)
})
--
Gitblit v1.9.3