van-dialog 的js写法
this.$dialog .confirm({ title: "提示", message: "xx", confirmButtonText: "删除", cancelButtonText: "取消", }) .then(async () => { const res2 = await deleteDraftbox(draftId); console.log(res2); if (res2.code == 200) { that.$toast("删除成功"); } }) .catch(async () => { // on cancel });

浙公网安备 33010602011771号