!1402 修复:酷家乐倒序打孔数据问题

pull/1402/MERGE
ZoeLeeFZ 4 years ago committed by ChenX
parent 7f23b9d2ed
commit ba16ecfb5e

@ -466,6 +466,8 @@ function ParseDrilling(params: KJL_Parameter[]): KJL_DrillData | undefined
}
}
const REG_EC = /^(EC)\d+$/;
function ParseEdges(params: KJL_Parameter[]): KJL_DrillData | undefined
{
if (!params) return;
@ -479,7 +481,7 @@ function ParseEdges(params: KJL_Parameter[]): KJL_DrillData | undefined
return data;
}
let index = params.findIndex(p => p.name === "EC1");//ECx: 按边分别配置
let index = params.findIndex(p => REG_EC.test(p.name));//ECx: 按边分别配置
if (index !== -1)
{
for (let i = index; i < params.length; i++)

Loading…
Cancel
Save