mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 21:48:13 +00:00
chore: data refresh
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user