From fc0f625c2620c10d725e0380e44dd73436f18a03 Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Wed, 6 Dec 2023 16:44:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9B=B4=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/record.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 8acf52d..6182e5a 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -60,7 +60,6 @@ export default { this.recordCar.endTime = recordCar.endTime historyMap(this.recordCar).then(res=>{ this.recordCarList = res.data; // 将获取到的对象集合存储到data中 - console.log(this.recordCarList) this.currentObject = {} this.startDisplay(); // 开始展示 let coordinates = res.data.map(obj => [ @@ -68,7 +67,7 @@ export default { parseFloat(obj.latitude.replace(/"/g, "")) ]); this.lineArr = coordinates - console.log(this.lineArr) + console.log("历史轨迹经纬:"+this.lineArr) }) }, initMap() { @@ -134,7 +133,7 @@ export default { }) }, startAnimation () { - // setTimeout(()=>{ + setTimeout(()=>{ AMap.plugin('AMap.MoveAnimation', () => { console.log('开始回放') this.marker.moveAlong(this.lineArr, { @@ -144,7 +143,7 @@ export default { autoRotation: true, }); }) - // },2000) + },2000) }, }, }