vue.js MessageBox弹框
MessageBox.confirm('', {title: '注意',message: message,showCancelButton: false,// confirmButtonText: 'abc',...
·
MessageBox.confirm('', {
title: '注意',
message: message,
showCancelButton: false,
// confirmButtonText: 'abc',
// cancelButtonText: '123'
}).then(action => {
if (action == 'confirm') { //确认的回调
window.location.reload();
}
}).catch(err => {
if (err == 'cancel') { //取消的回调
window.location.reload();
}
});
更多推荐
已为社区贡献1条内容
所有评论(0)