1
0

2 Commity 0ade1bd6b6 ... f3a21d6407

Autor SHA1 Správa Dátum
  wangzhe f3a21d6407 Merge remote-tracking branch 'origin/master' 8 mesiacov pred
  wangzhe 87aa0e7cbe 清除轨迹 8 mesiacov pred

+ 4 - 1
screen-demo/src/views/templateInstance.vue

@@ -429,11 +429,13 @@ export default {
       this.setpoint()
     },
     close(){
+      this.location.destroy()
       this.open=false
       this.start=[]
       this.end=[]
       this.flag = null
-      this.location.destroy()
+      // console.log("this.location=", this.location);
+      // alert(this.location.destroy())
     },
     //投影转坐标
     MercatorToWGS84(coords) {
@@ -483,6 +485,7 @@ export default {
         toolRoute.route(this.start, this.end).then(data => {
           toolRoute.drawPath(data.routs)
         })
+        this.location = toolRoute;
       }
     },
     handleSizeChange(val) {