第一步引入
import { MessageBox } from 'mint-ui';
第二步如果點擊確定按鈕執行的函數要加回調函數
adoptHandle() {
MessageBox({
title: '確定采納懸賞該回答?',
message: '懸賞金額5元+8積分',
showCancelButton: true,
})
.then(action => {
if (action === 'confirm') {
this.downadopt = !this.downadopt;
}
});
},
