From 9eb8f6647733f358b441b12832de032277e8a758 Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Mon, 4 Dec 2023 15:31:20 +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, 2 insertions(+), 3 deletions(-) diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 9c4ca63..6e65c92 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -17,11 +17,10 @@ export default { startTime:null, endTime:null }, - arr:[], lineArr:null, recordCarList: [] , // 存储获取到的对象集合 currentIndex: 0, // 当前展示的对象索引 - currentObject: "" // 当前展示的对象内容 + currentObject: {} // 当前展示的对象内容 } }, mounted() { @@ -36,7 +35,7 @@ export default { setInterval(() => { if (this.currentIndex < this.recordCarList.length) { // 当前索引小于集合长度时,更新展示的对象内容 - this.currentObject = JSON.stringify(this.recordCarList[this.currentIndex]); + this.currentObject = this.recordCarList[this.currentIndex]; this.currentIndex++; } }, 1000);