浏览代码

地图标记重复问题

zhupeng 3 年之前
父节点
当前提交
7a005758de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/Chargermap.vue

+ 1 - 1
components/Chargermap.vue

@@ -309,7 +309,7 @@
 					//this.getLocation();
 					for(var i in this.chargerList){
 						if(this.chargerList[i].marker){
-							this.chargerList[i].marker.destroy();
+							this.chargerList[i].marker.setMap(null);
 						}
 						this.mapcharger.remove(this.chargerList[i]);
 					}