Skip to content

Commit

Permalink
fix: extra menus follow layout setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan committed Dec 30, 2024
1 parent 76ef4d0 commit 83648d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/effects/layouts/src/basic/menu/use-extra-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ function useExtraMenu() {
}

watch(
() => route.path,
(path) => {
calcExtraMenus(path);
() => [route.path, preferences.app.layout],
([path]) => {
calcExtraMenus(path || '');
},
{ immediate: true },
);
Expand Down

0 comments on commit 83648d7

Please sign in to comment.