diff --git a/src/stores/app.ts b/src/stores/app.ts index fffa0298..91e6d3f8 100644 --- a/src/stores/app.ts +++ b/src/stores/app.ts @@ -44,7 +44,7 @@ export const useAppStore = defineStore("app", () => { /** * 当前激活的顶部菜单路径 */ - const activeTopMenuPath = useStorage(STORAGE_KEYS.ACTIVE_TOP_MENU_PATH, ""); + const activeTopMenuPath = useStorage(STORAGE_KEYS.ACTIVE_TOP_MENU_PATH, "", sessionStorage); /** * 内容区是否全屏