fix: cache control

This commit is contained in:
2024-07-12 14:50:01 +02:00
parent b3f7108979
commit 3d1c66b420
+6
View File
@@ -51,6 +51,12 @@ export const useApiStore = defineStore('apiStore', {
// Static data // Static data
this.fetchDonatorsData(); this.fetchDonatorsData();
this.fetchStationsGeneralInfo(); this.fetchStationsGeneralInfo();
// Ponowne pobieranie danych po ServiceWorkerze
setTimeout(() => {
this.fetchStationsGeneralInfo();
}, Math.floor(Math.random() * 500) + 1000);
this.fetchVehiclesInfo(); this.fetchVehiclesInfo();
}, },