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