更新历史轨迹
parent
4159aa3544
commit
9eb8f66477
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue