diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 9aec508..e5cf66d 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -65,8 +65,9 @@ export default { historyMap(this.recordCar).then(res=>{ console.log(res.data) res.data.forEach(item=>{ - this.arr[0] = item.longitude.valueOf() - this.arr[1] = item.latitude.valueOf() + this.arr[0] = item.longitude + this.arr[1] = item.latitude + this.arr.map(coord => parseFloat(coord)) this.lineArr.push(this.arr) console.log(this.lineArr) })