Browse Source
chore: types(logic) 减少冗沉,用了泛型 (#3977)
Co-authored-by: zach.zqy <bianzhixiaoyuan@163.com>
pull/3948/head
coderPeng3yang
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/logics/initAppConfig.ts
|
|
@ -24,7 +24,7 @@ import { Persistent } from '@/utils/cache/persistent'; |
|
|
export function initAppConfigStore() { |
|
|
export function initAppConfigStore() { |
|
|
const localeStore = useLocaleStore(); |
|
|
const localeStore = useLocaleStore(); |
|
|
const appStore = useAppStore(); |
|
|
const appStore = useAppStore(); |
|
|
let projCfg: ProjectConfig = Persistent.getLocal(PROJ_CFG_KEY) as ProjectConfig; |
|
|
let projCfg = Persistent.getLocal<ProjectConfig>(PROJ_CFG_KEY); |
|
|
projCfg = deepMerge(projectSetting, projCfg || {}); |
|
|
projCfg = deepMerge(projectSetting, projCfg || {}); |
|
|
const darkMode = appStore.getDarkMode; |
|
|
const darkMode = appStore.getDarkMode; |
|
|
const { |
|
|
const { |
|
|
|