Selaa lähdekoodia

Merge remote-tracking branch 'origin/master'

liao-sea 9 kuukautta sitten
vanhempi
commit
211f4149b7
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      vue/src/views/dataMap/jobUserDataMap.vue

+ 8 - 0
vue/src/views/dataMap/jobUserDataMap.vue

@@ -273,6 +273,14 @@ function setMapMarker() {
     }
     labelList.value = []
   }
+  if (jobUserCountMarker.value) {
+    (map as any).removeOverLay(jobUserCountMarker.value);
+  }
+  if (jobUserCountLabel.value) {
+    (map as any).removeOverLay(jobUserCountLabel.value);
+  }
+  jobUserCountMarker.value = null;
+  jobUserCountLabel.value = null;
   // 重置总数
   labelNumberCount.value = 0;