页面隐藏 断websocket 修改map中points的数据结构

This commit is contained in:
mmc
2026-06-04 11:49:20 +08:00
parent c66712c2e4
commit 84bcf11691
5 changed files with 18 additions and 10 deletions

View File

@@ -597,7 +597,7 @@ export default function WayLinePage({ onRefresh }) {
const res = await getsinglePlanTrack(record);
if (res.code === 0 && res.data.track?.points?.length) {
const points = res.data.track.points.map(item => ({
lon: item.longitude || item.lon,
lng: item.longitude || item.lon,
lat: item.latitude || item.lat
}));
setPoints(points);