修正酒格板厚无法读取

pull/651/head
ChenX 5 years ago
parent ffbf4f79c4
commit dd8730f077

@ -43,7 +43,7 @@ export class TemplateLeftRightBoardRecord extends TemplateRecord
let lBr = lId.Object as Board; let lBr = lId.Object as Board;
let rBr = rId.Object as Board; let rBr = rId.Object as Board;
let thickness = this.GetParam("BH").value as number; let thickness = this.GetParam("BH")?.value as number ?? 18;
lBr.Thickness = thickness; lBr.Thickness = thickness;
rBr.Thickness = thickness; rBr.Thickness = thickness;

@ -49,7 +49,7 @@ export class TemplateWineRackRecord extends TemplateRecord
{ {
await super.Update(); await super.Update();
this.option.boardThick = this.GetParam("BH").value as number; this.option.boardThick = this.GetParam("BH")?.value as number;
let wineRack: DrawWineRackTool; let wineRack: DrawWineRackTool;
if (this.option.type === EWineRackType.Oblique) if (this.option.type === EWineRackType.Oblique)

Loading…
Cancel
Save