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