页面隐藏 断websocket 修改map中points的数据结构
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user