更新历史轨迹

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, startTime:null,
endTime:null endTime:null
}, },
arr:[],
lineArr:null, lineArr:null,
recordCarList: [] , // recordCarList: [] , //
currentIndex: 0, // currentIndex: 0, //
currentObject: "" // currentObject: {} //
} }
}, },
mounted() { mounted() {
@ -36,7 +35,7 @@ export default {
setInterval(() => { setInterval(() => {
if (this.currentIndex < this.recordCarList.length) { if (this.currentIndex < this.recordCarList.length) {
// //
this.currentObject = JSON.stringify(this.recordCarList[this.currentIndex]); this.currentObject = this.recordCarList[this.currentIndex];
this.currentIndex++; this.currentIndex++;
} }
}, 1000); }, 1000);