element ui出现的问题

问题:使用element-ui的message-box时候,刚刚进入页面,刷新就默认显示出了部分message-box中的内容
在这里插入图片描述
解决方案:引入组件的时候不要用Vue.use(MessageBox),而是挂载到原型上Vue.prototype.$msgbox = MessageBox;
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/ljyahaha/article/details/113848525