From ae126040d8aed310c4a5c055b80ea6243c7b7024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Paj=C4=85k?= Date: Sun, 19 Jul 2020 20:23:36 +0200 Subject: [PATCH] =?UTF-8?q?Przywr=C3=B3cono=20dynamiczne=20od=C5=9Bwie?= =?UTF-8?q?=C5=BCanie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/store.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/modules/store.ts b/src/store/modules/store.ts index 8a769f3..f477f18 100644 --- a/src/store/modules/store.ts +++ b/src/store/modules/store.ts @@ -109,6 +109,8 @@ class Store extends VuexModule { public initStations() { this.context.commit('loadAllStations'); this.context.dispatch('fetchStations'); + + setInterval(() => this.context.dispatch('fetchStations'), 15000); } @Action