在mains.js 里添加
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// en是英文 zh-cn 是中文
app.use(ElementPlus, {
locale: zhCn,
})
问题就愉快的解决了
官网解决方法地址:https://element-plus.gitee.io/zh-CN/guide/i18n.html#全局配置
在mains.js 里添加
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
// en是英文 zh-cn 是中文
app.use(ElementPlus, {
locale: zhCn,
})
问题就愉快的解决了
官网解决方法地址:https://element-plus.gitee.io/zh-CN/guide/i18n.html#全局配置