chore: data refresh

This commit is contained in:
2025-01-28 18:52:27 +01:00
parent ddd8bcc462
commit b901176e8c
+4 -4
View File
@@ -43,9 +43,9 @@ export const useApiStore = defineStore('api', {
this.fetchSceneriesData(); this.fetchSceneriesData();
this.fetchActiveData(); this.fetchActiveData();
// setInterval(() => { setInterval(() => {
// this.fetchActiveData(); this.fetchActiveData();
// }, 20000); }, 25000);
}, },
async fetchActiveData() { async fetchActiveData() {
@@ -60,7 +60,7 @@ export const useApiStore = defineStore('api', {
this.outdatedTimerId = setTimeout(() => { this.outdatedTimerId = setTimeout(() => {
this.isActiveDataOutdated = true; this.isActiveDataOutdated = true;
}, 30000); }, 60000);
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }