!2559 开发:代码错误

pull/2560/head
林三 9 months ago committed by ChenX
parent 3f716f6f0a
commit ec6ee2b61e

@ -526,13 +526,17 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
let polyline = useNewKnife ? await this.getToplinesDetailPolyline(id) : br.KnifePolylineMap.get(id) ?? await this.getToplinesDetailPolyline(id);
//二维刀路时鉴权失败时 保存路径后退出
if (!polyline && i === 0)
if (!polyline)
{
path.ColorIndex = c.ColorIndex;
if (!pathMap.has(c.ColorIndex))
pathMap.set(c.ColorIndex, [path]);
else
pathMap.get(c.ColorIndex).push(path);
//没有刀具轮廓时不保留偏移的路径
if (i === 0)
{
path.ColorIndex = c.ColorIndex;
if (!pathMap.has(c.ColorIndex))
pathMap.set(c.ColorIndex, [path]);
else
pathMap.get(c.ColorIndex).push(path);
}
continue;
}

Loading…
Cancel
Save