From 0b89312c4488585ed07027601ae5f99a529238a4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-474NEJQ\\xzsjob" <359059686@qq.com> Date: Thu, 15 Oct 2020 15:51:00 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E4=B8=8D=E5=85=81=E8=AE=B8=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/working-area/working-area.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/working-area/working-area.component.ts b/src/app/working-area/working-area.component.ts index 07a0c32..c10e274 100644 --- a/src/app/working-area/working-area.component.ts +++ b/src/app/working-area/working-area.component.ts @@ -167,7 +167,8 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV this.rectToolGraphics.clear(); } if (event.keyCode === 46) { - this.selection.objects.forEach(item => { + if (this.allowEdit) { + this.selection.objects.forEach(item => { // 删除 选中的数据 if (item.assetData?.IsFromBuilding) { delete this.canvasData.originalcompanyBuildingData?.data[item.assetData.Id]; @@ -196,6 +197,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV } } }); + } } }); // 测试代码