Browse Source
fix: in mixed layout mode, the sidebar does not display when the first child node is an external link (#6219)
Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
pull/6227/head
wyc001122
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
1 deletions
-
packages/effects/layouts/src/basic/menu/use-mixed-menu.ts
|
|
|
@ -140,7 +140,10 @@ function useMixedMenu() { |
|
|
|
watch( |
|
|
|
() => route.path, |
|
|
|
(path) => { |
|
|
|
const currentPath = (route?.meta?.activePath as string) ?? path; |
|
|
|
const currentPath = route?.meta?.activePath ?? route?.meta?.link ?? path; |
|
|
|
if (willOpenedByWindow(currentPath)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
calcSideMenus(currentPath); |
|
|
|
if (rootMenuPath.value) |
|
|
|
defaultSubMap.set(rootMenuPath.value, currentPath); |
|
|
|
|