Dialog.confirm 结合 async和await 可以达到同步得效果
async aaa() {
await Dialog.confirm({
title: "标题",
message: "弹窗内容",
})
.then(() => {
// on confirm
})
.catch(() => {
// on cancel
});
console.log("12222222222222");
},