chore: types(logic) 减少冗沉,用了泛型 (#3977)
Co-authored-by: zach.zqy <bianzhixiaoyuan@163.com>
This commit is contained in:
parent
baf406e7e2
commit
57ff038d82
|
|
@ -24,7 +24,7 @@ import { Persistent } from '@/utils/cache/persistent';
|
|||
export function initAppConfigStore() {
|
||||
const localeStore = useLocaleStore();
|
||||
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 || {});
|
||||
const darkMode = appStore.getDarkMode;
|
||||
const {
|
||||
|
|
|
|||
Loading…
Reference in New Issue