uniapp使用element中的message和Notification:
message失效问题:
会报错:’error‘ is not undefind
一直在踩坑中…
解决如下:
在main.js中,给vue挂载实例:
将Vue.use()
Vue.use(Message);
Vue.use(Notification);
替换为:
Vue.prototype.$message = Message;
Vue.prototype.$notify = Notification;