更新历史轨迹列表数据6

master
tangwenkang 2023-12-01 15:52:22 +08:00
parent 02e54ad426
commit 8fc0c622a4
1 changed files with 3 additions and 2 deletions

View File

@ -65,8 +65,9 @@ export default {
historyMap(this.recordCar).then(res=>{ historyMap(this.recordCar).then(res=>{
console.log(res.data) console.log(res.data)
res.data.forEach(item=>{ res.data.forEach(item=>{
this.arr[0] = item.longitude.valueOf() this.arr[0] = item.longitude
this.arr[1] = item.latitude.valueOf() this.arr[1] = item.latitude
this.arr.map(coord => parseFloat(coord))
this.lineArr.push(this.arr) this.lineArr.push(this.arr)
console.log(this.lineArr) console.log(this.lineArr)
}) })