!447 fix #I106OX 背板默认配置初始化错误

pull/447/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent bc58ca3b9e
commit 68f312d3ca

@ -48,6 +48,11 @@ export class UserConfigStore extends Singleton
configs["薄背板"] = cloneConfig;
cloneConfig = cloneBehindData(cloneConfig);
cloneConfig.option.thickness = 18;
cloneConfig.option.leftExt = 0;
cloneConfig.option.rightExt = 0;
cloneConfig.option.topExt = 0;
cloneConfig.option.bottomExt = 0;
cloneConfig.option.name = "上挡板";
cloneConfig.option.boardPosition = BehindHeightPositon.ForTop;
cloneConfig.option.boardRelative = BrRelativePos.Front;
@ -137,7 +142,7 @@ export class UserConfigStore extends Singleton
else
{
let data = await PostJson(ConfigUrls.Get, { key }, false);
if (data.err_code === RequestStatus.Ok && data.value)
if (data.err_code === RequestStatus.Ok && data.value && data.value !== "{}")
{
configs = JSON.parse(data.value);
appCache.set(key, JSON.parse(data.value));

Loading…
Cancel
Save