vue报错Cannot read property '_t' of undefined
是在项目中用了多语言配置,vue 跟 i18n之间的兼容问题。解决方法如下Vue.use(ViewUI)替换成Vue.use(ViewUI, {i18n: function (path, options) {let value = i18n.t(path, options);if (value !== null && value !== unde...
·
是在项目中用了多语言配置,vue 跟 i18n之间的兼容问题。解决方法如下
Vue.use(ViewUI)
替换成
Vue.use(ViewUI, {
i18n: function (path, options) {
let value = i18n.t(path, options);
if (value !== null && value !== undefined) return value;
return '';
}
});
更多推荐
所有评论(0)