async,await是配合使用的,一般的操作:
async test() {
const res = await ajax();
}
then里面包着async, await的代码:
test() {
this.$confirm("是否提交?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
})
.then(async () => {
const res = await ajax();
})
.catch(() => { });
}
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。