更新实时轨迹5

master
tangwenkang 2023-12-03 20:01:08 +08:00
parent d76730c520
commit ff31f7204e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default {
res.data.forEach(item=>{
this.carMsg = item
this.arr.push(item.longitude.replace(/"/g, "") +","+item.latitude.replace(/"/g, ""))
this.lineArr = this.arr.map(item => item.trim().replace(/'/g, '').split(','))
this.lineArr.push(this.arr)
console.log(this.lineArr)
})
})