!2590 修复:子账号配置初始化数据显示错误

pull/2228/MERGE
黄诗津 7 months ago committed by ChenX
parent 11b4944d20
commit e9399667f9

@ -295,8 +295,8 @@ export class DialogUserConfig
{
let confNames = Object.keys(configs);
await configListMapStore.AddConfig(this._UIType, confNames, this._Store);
await userConfigStore.InitConfigs(configs, this._UIType);//多个配置上传到云端
await configListMapStore.AddConfig(this._UIType, confNames, this._Store);
}
else
await this.SaveCurConfig(true);//上传到云端

@ -62,7 +62,7 @@ export class ConfigListMapStore extends Singleton
const isInit = addNames.length > 1; //初始配置时可能存在多个
const isExist = addNames.length === 1 && names.includes(addNames[0]); //判断是否存在
if (isInit || !isExist)
if (!isInit && !isExist)
names.push(...addNames);
store.configsNames = names;

Loading…
Cancel
Save