From 459134236b37190798bf1e9737a802e16df1bcff Mon Sep 17 00:00:00 2001 From: chenxf Date: Fri, 23 Jan 2026 14:40:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(Sidebar):=20=E6=B7=BB=E5=8A=A0=20meta.id?= =?UTF-8?q?=20=E8=8F=9C=E5=8D=95=E5=8C=B9=E9=85=8D=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Sidebar/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 2084b39..722fe30 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -38,6 +38,10 @@ export default { if (meta.activeMenu) { return meta.activeMenu } + // 优先使用 meta.id 匹配菜单(动态菜单使用 sysMenuId 作为索引) + if (meta.id) { + return meta.id + } return path }, showLogo() {