import { MessageBox } from 'mint-ui'
MessageBox.confirm('确定执行操作吗', '提示').then(action => {
if (action === 'confirm') {
console.log('确认')
} else {
console.log('取消')
}
}).catch(e => {
console.log(e)
})
MessageBox({
title: '提示',
message: '确定执行操作吗',
showCancelButton: true
}).then(action => {
console.log(action)
if (action === 'confirm') {
console.log('确认')
} else {
console.log('取消')
}
})