Selaa lähdekoodia

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

lipenghui 1 kuukausi sitten
vanhempi
commit
b66ee892b6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()
   })
 }