浏览代码

增删信息点的判断由 id 改为 code

YaolongHan 4 年之前
父节点
当前提交
27cc57a1af
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      persagy-web-big-edit/src/items/SBaseEquipment.ts

+ 1 - 1
persagy-web-big-edit/src/items/SBaseEquipment.ts

@@ -187,7 +187,7 @@ export class SBaseEquipment extends SBaseIconTextEdit {
             this._infoPointList.forEach((item, index) => {
 
                 // 通过 id 对比定位对象
-                if (val.id == item.id) {
+                if (val.code == item.code) {
                     deleteItemIndex = index;
                 }