fix pobierania danych

This commit is contained in:
2024-03-16 22:13:38 +01:00
parent 1c9b54b578
commit 084823de44
3 changed files with 14 additions and 7 deletions
+6
View File
@@ -73,6 +73,12 @@ export default defineComponent({
},
async mounted() {
window.addEventListener('focus', () => {
if (Date.now() - this.apiStore.lastFetchData.getTime() < 15000) return;
this.apiStore.fetchActiveData();
});
watch(
() => this.store.blockScroll,
(value) => {