浏览代码

新页面

彭宇 2 年之前
父节点
当前提交
3570587685
共有 2 个文件被更改,包括 3 次插入0 次删除
  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()