chore: types(logic) 减少冗沉,用了泛型 (#3977)

Co-authored-by: zach.zqy <bianzhixiaoyuan@163.com>
This commit is contained in:
coderPeng3yang 2024-07-25 10:08:20 +08:00 committed by GitHub
parent baf406e7e2
commit 57ff038d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {