Selaa lähdekoodia

feat: 设置中心点判断以rangePoint为首选其次为point

zhouyuhao 1 vuosi sitten
vanhempi
commit
ea0b9801cb

+ 1 - 1
src/views/Tracking/src/components/TrackingDetail/src/components/MapView.vue

@@ -422,7 +422,7 @@ const getMarker = () => {
               iconColor: iconColorList[item.label].color
             })
           })
-        viewData.value = data.rangePoint.map((item) => {
+        viewData.value = (data?.rangePoint || data?.point)?.map((item) => {
           return [Number(item.lat), (Number(item.lon) + 360) % 360]
         })
         // 请求成功后添加标记,并动态添加重置按钮