diff --git a/src/store/modules/app/index.ts b/src/store/modules/app/index.ts index 498f82b..4db3aef 100644 --- a/src/store/modules/app/index.ts +++ b/src/store/modules/app/index.ts @@ -58,9 +58,15 @@ export const useAppStore = defineStore(SetupStoreId.App, () => { ]; function changeLocale(lang: App.I18n.LangType) { + if (locale.value === lang) return; + locale.value = lang; setLocale(lang); localStg.set('lang', lang); + + setTimeout(() => { + window.location.reload(); + }, 100); } /** Update document title by locale */