Commit 34c4ecb0 by wyc001122 Committed by GitHub

fix: in mixed layout mode, the sidebar does not display when the first child nod…

…e is an external link (#6219)

Co-authored-by: wyc001122 <wangyongchao@testor.com.cn>
1 parent 3d9dba96
...@@ -140,7 +140,10 @@ function useMixedMenu() { ...@@ -140,7 +140,10 @@ function useMixedMenu() {
watch( watch(
() => route.path, () => route.path,
(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); calcSideMenus(currentPath);
if (rootMenuPath.value) if (rootMenuPath.value)
defaultSubMap.set(rootMenuPath.value, currentPath); defaultSubMap.set(rootMenuPath.value, currentPath);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!