2
0

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

This commit is contained in:
TsMask
2024-12-04 17:28:24 +08:00
parent d438b525b2
commit a8ec9ff797
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -44,7 +44,7 @@ export const useAppStore = defineStore(SetupStoreId.App, () => {
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[] = [
{