Aktualizacja scenerii; WIP: zmiana serwerów SWDR

This commit is contained in:
2021-09-21 21:49:48 +02:00
parent b91d9a3e4f
commit 0f04e1406f
5 changed files with 57 additions and 13 deletions
+11
View File
@@ -104,8 +104,13 @@ export default defineComponent({
() => store.getters[GETTERS.allData]
);
const currentRegion: ComputedRef<string> = computed(
() => store.getters[GETTERS.currentRegion]
);
return {
data,
currentRegion,
};
},
@@ -149,6 +154,12 @@ 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");