浏览代码

删除图标有bug,已经修复。

xushiting 2 年之前
父节点
当前提交
08b86c89c6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/draw-file/board/editCAD/Controls/UIControl.js

+ 2 - 1
src/views/draw-file/board/editCAD/Controls/UIControl.js

@@ -16,6 +16,7 @@ import { floorplanData } from '../FloorplanData.js'
 import { signService } from '../Service/SignService.js'
 import mitt from 'mitt'
 import {history} from '../History/History.js'
+import { iconService } from '../Service/IconService.js'
 
 export default class UIControl{
     constructor(layer) {
@@ -177,7 +178,7 @@ export default class UIControl{
             } else if (item.type == VectorType.Arrow) {
                 floorplanService.deleteArrow(item.vectorId)
             } else if (item.type == VectorType.Icon) {
-                floorplanService.deleteIcon(item.vectorId)
+                iconService.deleteIcon(item.vectorId)
             }  else if (item.type == VectorType.Tag) {
                 floorplanService.deleteTag(item.vectorId)
             } else if (item.type == VectorType.Table) {