mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-02-02 18:08:40 +08:00
fix: 当前路由所在菜单路径是嵌套并且隐藏时无法正常高亮根菜单节点 (#1201)
修复当路由所在菜单路径是嵌套并且隐藏时无法正常高亮根菜单节点的问题。 Fixed #1080
This commit is contained in:
parent
bfdbccfece
commit
034e39ef06
@ -134,7 +134,9 @@
|
|||||||
isClickGo.value = false;
|
isClickGo.value = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const path = (route || unref(currentRoute)).path;
|
const path =
|
||||||
|
(route || unref(currentRoute)).meta?.currentActiveMenu ||
|
||||||
|
(route || unref(currentRoute)).path;
|
||||||
setOpenKeys(path);
|
setOpenKeys(path);
|
||||||
if (unref(currentActiveMenu)) return;
|
if (unref(currentActiveMenu)) return;
|
||||||
if (props.isHorizontal && unref(getSplit)) {
|
if (props.isHorizontal && unref(getSplit)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user