1
0

2 Commits 0ade1bd6b6 ... f3a21d6407

Autor SHA1 Mensagem Data
  wangzhe f3a21d6407 Merge remote-tracking branch 'origin/master' 8 months atrás
  wangzhe 87aa0e7cbe 清除轨迹 8 months atrás
1 changed files with 4 additions and 1 deletions
  1. 4 1
      screen-demo/src/views/templateInstance.vue

+ 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) {