!401 修复排钻类型初始化错误

Merge pull request !401 from ZoeLeeFZ/fixDrillConfig
pull/401/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent 782dbbc403
commit af69932259

@ -60,9 +60,13 @@ export class BoardStore extends Singleton implements IConfigStore
let drilltypes = [...userConfig.DrillConfigs.keys()];
if (drilltypes.length > 0)
{
observable(this.m_BoardProcessOption.highDrill).replace(Array(4).fill(drilltypes[0]));
if (!drilltypes.includes(this.m_BoardProcessOption.drillType))
{
this.m_BoardProcessOption.drillType = drilltypes[0];
observable(this.m_BoardProcessOption.highDrill).replace(Array(4).fill(drilltypes[0]));
}
else
observable(this.m_BoardProcessOption.highDrill).replace(Array(4).fill(this.m_BoardProcessOption.drillType));
}
}
get UIOption()

Loading…
Cancel
Save