Browse Source

地图标记重复问题

zhupeng 3 years ago
parent
commit
7a005758de
1 changed files with 1 additions and 1 deletions
  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]);
 					}