Browse Source
fix: 当前路由所在菜单路径是嵌套并且隐藏时无法正常高亮根菜单节点 (#1201)
修复当路由所在菜单路径是嵌套并且隐藏时无法正常高亮根菜单节点的问题。
Fixed #1080
pull/1252/head
Leon Guan
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/components/Menu/src/BasicMenu.vue
|
|
|
@ -134,7 +134,9 @@ |
|
|
|
isClickGo.value = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
const path = (route || unref(currentRoute)).path; |
|
|
|
const path = |
|
|
|
(route || unref(currentRoute)).meta?.currentActiveMenu || |
|
|
|
(route || unref(currentRoute)).path; |
|
|
|
setOpenKeys(path); |
|
|
|
if (unref(currentActiveMenu)) return; |
|
|
|
if (props.isHorizontal && unref(getSplit)) { |
|
|
|
|