Dodanie możliwości zmiany serwerów gry

This commit is contained in:
2021-09-22 11:26:30 +02:00
parent 0f04e1406f
commit 712dc64693
8 changed files with 104 additions and 42 deletions
+4 -7
View File
@@ -39,7 +39,10 @@
<span class="header_info">
<Clock />
<div class="info_counter">
<span class="region">{{ currentRegion.value }}</span>
<img src="@/assets/icon-dispatcher.svg" alt="icon dispatcher" />
<span>{{ data.activeStationCount }}</span>
<span>{{ data.activeTrainCount }}</span>
@@ -104,7 +107,7 @@ export default defineComponent({
() => store.getters[GETTERS.allData]
);
const currentRegion: ComputedRef<string> = computed(
const currentRegion: ComputedRef<{ id: string; value: string }> = computed(
() => store.getters[GETTERS.currentRegion]
);
@@ -154,12 +157,6 @@ export default defineComponent({
StorageManager.setStringValue("lang", lang);
},
// changeRegion(region: string = "eu") {
// this.$store.commit(MUTATIONS.SET_REGION, region);
// this.$store.dispatch(ACTIONS.fetchOnlineData);
// },
loadLang() {
const storageLang = StorageManager.getStringValue("lang");