feat(Sidebar): 添加 meta.id 菜单匹配逻辑
This commit is contained in:
parent
bff4c0f4db
commit
459134236b
|
|
@ -38,6 +38,10 @@ export default {
|
||||||
if (meta.activeMenu) {
|
if (meta.activeMenu) {
|
||||||
return meta.activeMenu
|
return meta.activeMenu
|
||||||
}
|
}
|
||||||
|
// 优先使用 meta.id 匹配菜单(动态菜单使用 sysMenuId 作为索引)
|
||||||
|
if (meta.id) {
|
||||||
|
return meta.id
|
||||||
|
}
|
||||||
return path
|
return path
|
||||||
},
|
},
|
||||||
showLogo() {
|
showLogo() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue