fix: 设置默认语言为en-US
This commit is contained in:
@@ -13,6 +13,7 @@ const appStore = useAppStore();
|
||||
const themeStore = useThemeStore();
|
||||
|
||||
const antdLocale = computed(() => {
|
||||
appStore.changeLocale(appStore.locale);
|
||||
return antdLocales[appStore.locale];
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -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[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user