diff --git a/src/layout/components/Settings/index.vue b/src/layout/components/Settings/index.vue index ad3782cd..fe8e7793 100644 --- a/src/layout/components/Settings/index.vue +++ b/src/layout/components/Settings/index.vue @@ -96,7 +96,7 @@ function changeLayout(layout: string) { /** 重新激活顶部菜单 */ function againActiveTop(newVal: string) { const parent = findOutermostParent(permissionStore.routes, newVal); - if (appStore.activeTopMenu !== parent.path) { + if (appStore.activeTopMenuPath !== parent.path) { appStore.activeTopMenu(parent.path); } }