我是在iview项目中引入elementUI并使用时报错
TypeError: Cannot read property ‘_t’ of undefined"
解决办法:
在main.js中 将
Vue.use(ElementUI)改为
Vue.use(ElementUI, {
i18n: (key, value) => i18n.t(key, value)
})
解决TypeError: Cannot read property ‘_t‘ of undefined“
最新推荐文章于 2023-04-15 21:56:29 发布