This commit is contained in:
zlwu committed 2026-07-01 18:52:26 +08:00
1 parent 7c838cfb2d
commit 8e70047f4c
161 files changed
+16659 -10436

No files matched your search

+7 -1
View File
@@ -39,6 +39,7 @@ import { setElementThemeColor } from '@/utils/ui'
import { useCeremony } from '@/hooks/core/useCeremony'
import { StorageConfig } from '@/utils'
import { SETTING_DEFAULT_CONFIG } from '@/config/setting'
import { useWorktabStore } from '@/store/modules/worktab'
/**
* 系统设置状态管理
@@ -266,6 +267,9 @@ export const useSettingStore = defineStore(
*/
const setWorkTab = (show: boolean) => {
showWorkTab.value = show
if (!show) {
useWorktabStore().enforceSinglePageTabs()
}
}
/**
@@ -444,7 +448,9 @@ export const useSettingStore = defineStore(
{
persist: {
key: 'setting',
storage: localStorage
storage: localStorage,
/** 严格单页:不持久化多标签开关,避免旧配置覆盖默认 false */
omit: ['showWorkTab']
}
}
)