Explorar o código

Merge remote-tracking branch 'origin/master'

liao-sea hai 9 meses
pai
achega
211f4149b7
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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;