第一步引入
import { MessageBox } from \'mint-ui\';
第二步如果点击确定按钮执行的函数要加回调函数
adoptHandle() {
MessageBox({
title: \'确定采纳悬赏该回答?\',
message: \'悬赏金额5元+8积分\',
showCancelButton: true,
})
.then(action => {
if (action === \'confirm\') {
this.downadopt = !this.downadopt;
}
});
},