更新历史轨迹

master
tangwenkang 2023-12-04 15:31:20 +08:00
parent 4159aa3544
commit 9eb8f66477
1 changed files with 2 additions and 3 deletions

View File

@ -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);