From c7c8c405b1a0239ba0158ce9c449855cfb5121eb Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Mon, 4 Dec 2023 19:05:16 +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?= 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 15cbf28..e0a0219 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -53,6 +53,8 @@ export default { }) }, doDo(recordCar){ + this.initMap() + this.startAnimation() this.recordCar.vin = recordCar.vin this.recordCar.startTime = recordCar.startTime this.recordCar.endTime = recordCar.endTime @@ -66,9 +68,8 @@ export default { parseFloat(obj.latitude.replace(/"/g, "")) ]); this.lineArr = [coordinates] + console.log(this.lineArr) }) - this.initMap() - this.startAnimation() }, initMap() { AMapLoader.load({