Jelajahi Sumber

锁定站初始化调用重复问题

pm 9 bulan lalu
induk
melakukan
f52f76d6c0
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      src/views/mes/hw/lotoStation/MapData.vue

+ 5 - 3
src/views/mes/hw/lotoStation/MapData.vue

@@ -86,7 +86,7 @@ export default {
   },
   mounted() {
     this.$nextTick(()=>{
-      this.getInfo()
+      // this.getInfo()
       this.initKonva();
       this.getIsIsolationPointPage()
       this.addPointsToRightPointsBox()
@@ -181,9 +181,11 @@ export default {
     // 重置
     reset() {
       this.value = this.originData
+      this.rightPoints = []
+      this.leftPoints = []
       this.initKonva() // 重新初始化 Konva
     },
-    // 预览
+    // 刷新
     view() {
       if (this.isJson(this.value)) {
         this.form.map = this.value
@@ -513,7 +515,7 @@ export default {
                 snappedY >= leftBoxBounds.y &&
                 snappedY <= leftBoxBounds.y + leftBoxBounds.height
               ) {
-                console.log('进入侧盒子区域');
+                console.log('进入侧盒子区域');
                 // 从 JSON 中移除点
                 let valueArray = [];
                 try {