Sfoglia il codice sorgente

设备地图去掉经纬度为0的

lipenghui 1 mese fa
parent
commit
b66ee892b6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/views/pms/map/Map.vue

+ 1 - 1
src/views/pms/map/Map.vue

@@ -313,7 +313,7 @@ const toggleMapType = () => {
 
 const getData = async () => {
   await IotDeviceApi.getMapDevice().then((res) => {
-    devices.value = res
+    devices.value = res.filter((item)=> item.lat!=0&&item.lng!=0)
     initMap()
   })
 }