@@ -326,7 +326,8 @@ export default defineComponent({ | |||
// 两秒钟获取一次数据 | |||
data.socket = setInterval(() => { | |||
getTrackData().then(({ trackList }) => { | |||
const obj = trackList[0] | |||
const len = trackList.length | |||
const obj = trackList[len - 1] | |||
const coordinate = fromLonLat([obj?.lng, obj?.lat]) | |||
if (data.trackInfo) { | |||
data.trackInfo.route.appendCoordinate(coordinate) |