Skip to content

Commit 4f1f343

Browse files
author
wyc001122
committed
fix: in mixed layout mode, the sidebar does not display when the first child node is an external link
1 parent 024c01d commit 4f1f343

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/effects/layouts/src/basic/menu/use-mixed-menu.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ function useMixedMenu() {
140140
watch(
141141
() => route.path,
142142
(path) => {
143-
const currentPath = (route?.meta?.activePath as string) ?? path;
143+
const currentPath = route?.meta?.activePath ?? route?.meta?.link ?? path;
144+
if (willOpenedByWindow(currentPath)) {
145+
return;
146+
}
144147
calcSideMenus(currentPath);
145148
if (rootMenuPath.value)
146149
defaultSubMap.set(rootMenuPath.value, currentPath);

0 commit comments

Comments
 (0)