chore(projects): 页面离开重置theme状态再缓存主题配置。

This commit is contained in:
Ω 2023-06-28 16:09:45 +08:00
parent 13f6cd8ef4
commit 14de157cef

View File

@ -14,6 +14,7 @@ export function useGlobalEvents() {
/** 页面离开时缓存多页签数据 */ /** 页面离开时缓存多页签数据 */
useEventListener(window, 'beforeunload', () => { useEventListener(window, 'beforeunload', () => {
theme.resetThemeStore()
theme.cacheThemeSettings(); theme.cacheThemeSettings();
tab.cacheTabRoutes(); tab.cacheTabRoutes();
}); });