1.引入
import { Message } from 'mint-ui'
2.使用
downLoad(){
MessageBox({
title: '标题',
message: '信息',
showCancelButton: true
}).then(action => {
if(action === 'confirm'){
console.log("点击了确定");
}
if(action === 'cancel'){
console.log("点击了取消");
}
}).catch(err => {
console.loog("产生的错误",err);
})
}