mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-30 15:16:42 +08:00
chore(projects): 页面离开重置theme状态再缓存主题配置。
This commit is contained in:
parent
13f6cd8ef4
commit
14de157cef
@ -14,6 +14,7 @@ export function useGlobalEvents() {
|
||||
|
||||
/** 页面离开时缓存多页签数据 */
|
||||
useEventListener(window, 'beforeunload', () => {
|
||||
theme.resetThemeStore()
|
||||
theme.cacheThemeSettings();
|
||||
tab.cacheTabRoutes();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user