在HTML头部嵌入高德地图API脚本,用于初始化地图服务。fix(car/trajectory): 设置正确的间隔时间并修复carVin属性格式- 修正了定时器设置,将每隔10秒调用fetchData方法,以确保数据获取频率符合预期。

- 修正了carVin属性的格式,移除了不必要的空格,保持代码的一致性和清洁性。
master
wxy 2024-09-29 20:26:28 +08:00
parent 0a61d647fa
commit dbfd9652f9
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export default {
}, },
created() { created() {
// fetchData // fetchData
this.intervalId = setInterval(this.fetchData, 2000); // 1000010 this.intervalId = setInterval(this.fetchData, 10000); // 1000010
}, },
methods: { methods: {
async fetchData() { async fetchData() {