diff --git a/src/composables/events.ts b/src/composables/events.ts index c780870a..6fc2ba9c 100644 --- a/src/composables/events.ts +++ b/src/composables/events.ts @@ -14,6 +14,7 @@ export function useGlobalEvents() { /** 页面离开时缓存多页签数据 */ useEventListener(window, 'beforeunload', () => { + theme.resetThemeStore() theme.cacheThemeSettings(); tab.cacheTabRoutes(); });