Browse Source

[修正] 查看模式不允许删除

master
徐振升 4 years ago
parent
commit
0b89312c44
  1. 4
      src/app/working-area/working-area.component.ts

4
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
}
}
});
}
}
});
// 测试代码

Loading…
Cancel
Save