清空数据时停用所有实用功能

This commit is contained in:
fofolee
2022-05-02 10:17:57 +08:00
parent dc7086fb9f
commit 46aa645792
4 changed files with 23 additions and 3 deletions

View File

@@ -64,7 +64,10 @@ export default defineComponent({
let userProfile = this.utools.getDB(
this.utools.DBPRE.CFG + "preferences"
);
_.merge(defaultProfile, _.cloneDeep(userProfile));
this.profile = _.merge(
_.cloneDeep(defaultProfile),
_.cloneDeep(userProfile)
);
// 计划任务
_.forIn(this.profile.crontabs, (cronExp, featureCode) => {
this.runCronTask(featureCode, cronExp);