src/utils/i18n/index.js
@@ -4,7 +4,10 @@ import zh from './locales/zh.json' // 中文语言包 const i18n = createI18n({ locale: 'en', // 设置默认语言为英文 locale: 'zh', // 设置默认语言为中文 fallbackLocale: 'ch', globalInjection:true, legacy: false, // you must specify 'legacy: false' option messages: { en, zh,