src/I18n/index.ts
@@ -1,6 +1,6 @@ import { createI18n } from 'vue-i18n'; import cn from './config/cn'; import cn from './config/cn'; import zhLocale from 'element-plus/dist/locale/zh-cn.mjs'; const messages = {}; @@ -29,7 +29,7 @@ missingWarn: false, silentFallbackWarn: true, fallbackWarn: false, locale: localStorage.getItem('lang') || 'zh-cn', // 设置默认语言 locale: 'zh-cn', // 设置默认语言 messages, // 设置翻译内容 });