2
0

fix: 设置默认语言为en-US

This commit is contained in:
TsMask
2024-12-04 17:35:17 +08:00
parent d2f25695d8
commit 55d50ef8a5
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ const appStore = useAppStore();
const themeStore = useThemeStore(); const themeStore = useThemeStore();
const antdLocale = computed(() => { const antdLocale = computed(() => {
appStore.changeLocale(appStore.locale);
return antdLocales[appStore.locale]; return antdLocales[appStore.locale];
}); });
</script> </script>

View File

@@ -44,7 +44,7 @@ export const useAppStore = defineStore(SetupStoreId.App, () => {
setReloadFlag(true); setReloadFlag(true);
} }
const locale = ref<App.I18n.LangType>(localStg.get('lang') || 'zh-CN'); const locale = ref<App.I18n.LangType>(localStg.get('lang') || 'en-US');
const localeOptions: App.I18n.LangOption[] = [ const localeOptions: App.I18n.LangOption[] = [
{ {