瀏覽代碼

fix: 基准点问题

jinx 2 年之前
父節點
當前提交
065be99e03
共有 2 個文件被更改,包括 13 次插入2 次删除
  1. 1 1
      server/test/a0k4xu045_202305311600080410/attach/sceneStore
  2. 12 1
      src/graphic/Service/PointService.js

File diff suppressed because it is too large
+ 1 - 1
server/test/a0k4xu045_202305311600080410/attach/sceneStore


+ 12 - 1
src/graphic/Service/PointService.js

@@ -59,7 +59,15 @@ export default class PointService {
       }
     }
   }
-
+  updateBasePointIds() {
+    let points = dataService.vectorData.points;
+    Settings.basePointIds = [];
+    for (let key in points) {
+      if (points[key].category == VectorCategory.Point.BasePoint) {
+        Settings.basePointIds.push(points[key].vectorId);
+      }
+    }
+  }
   deleteBasePoint(basePointId) {
     let points = dataService.getPoints();
     let needDeletePointIds = [];
@@ -85,6 +93,7 @@ export default class PointService {
     if (Settings.selectBasePointId == basePointId) {
       Settings.selectBasePointId = null;
     }
+    this.updateBasePointIds()
   }
 
   deleteTestPoint(testPointId) {
@@ -122,6 +131,8 @@ export default class PointService {
     }
     dataService.deletePoint(testPointId);
   }
+
+
 }
 
 const pointService = new PointService();