tanghaolin
2025-03-06 2fdfc7907920e9003c62445b6000dc3c9edd6edb
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, // 设置翻译内容
});