mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix pobierania danych
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user