diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index f93f16d..8ae3e37 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -447,6 +447,7 @@ export class CollectionToolsComponent implements OnInit { ngAfterViewInit(): void { this.getAllBuildings(true) + // 监听canvas组件选中素材事件 this.canvas.on("select",obj=>{ //选中素材属性注入函数 @@ -457,11 +458,7 @@ export class CollectionToolsComponent implements OnInit { this.isShowProperty = false }) // 监听canvas组件新增素材事件 - this.canvas.on("createIcon",obj=>{ - this.renovateTreeData(false) - }) - // 监听canvas组件删除素材事件 - this.canvas.on("deleteIcon",obj=>{ + this.canvas.on("canvasDataChanged",obj=>{ this.renovateTreeData(false) }) }