彭宇 před 2 roky
rodič
revize
3570587685
2 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 1 0
      src/views/afforestation.vue
  2. 2 0
      src/views/leader.vue

+ 1 - 0
src/views/afforestation.vue

@@ -134,6 +134,7 @@
         })
       },
       setGraphicsList(points){
+        this.graphicsList=[]
         if(points!=null&&points!=""){
           this.graphicsList=JSON.parse(points);
           this.$refs.supermap.clearG()

+ 2 - 0
src/views/leader.vue

@@ -179,6 +179,7 @@
       //点击左侧人员列表获取轨迹
       getLeaderTrack(userId) {
         let that=this
+        this.connectList=[]
         getLeaderTrack(userId).then(res => {
           if(res.data!=null&&res.data.length>0){
             for (let i = 0; i < res.data.length; i++) {
@@ -199,6 +200,7 @@
       },
 
       setConnectList(points){
+        this.connectList=[]
         if(points!=null&&points!=""){
           this.connectList=JSON.parse(points);
           this.$refs.supermap.clearC()