From 8fc0c622a4ae87b550bd18eb37ce3d83d173ce55 Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Fri, 1 Dec 2023 15:52:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8E=86=E5=8F=B2=E8=BD=A8?= =?UTF-8?q?=E8=BF=B9=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/record.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) })