vue element 消息防重复
- 前端
- 三生万物
- 0
在 main.js 修改如下:
// 消息访重复
let $message = Vue.prototype.$message;
Vue.prototype.$message = function(opts) {
if(!document.querySelector('.el-message')) {
$message(opts);
}
}
免责申明:本站发布的内容(图片、视频和文字)以转载和分享为主,文章观点不代表本站立场,如涉及侵权请联系站长邮箱:xbc-online@qq.com进行反馈,一经查实,将立刻删除涉嫌侵权内容。