mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 05:48:11 +00:00
Przywrócono dynamiczne odświeżanie
This commit is contained in:
@@ -109,6 +109,8 @@ class Store extends VuexModule {
|
|||||||
public initStations() {
|
public initStations() {
|
||||||
this.context.commit('loadAllStations');
|
this.context.commit('loadAllStations');
|
||||||
this.context.dispatch('fetchStations');
|
this.context.dispatch('fetchStations');
|
||||||
|
|
||||||
|
setInterval(() => this.context.dispatch('fetchStations'), 15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Action
|
@Action
|
||||||
|
|||||||
Reference in New Issue
Block a user