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({