|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|