Skip to content

Commit

Permalink
chore: types(logic) 减少冗沉,用了泛型 (#3977)
Browse files Browse the repository at this point in the history
Co-authored-by: zach.zqy <[email protected]>
  • Loading branch information
codermie and zach.zqy authored Jul 25, 2024
1 parent baf406e commit 57ff038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logics/initAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57ff038

Please sign in to comment.