this.$confirm({
title:"提示",
content:"是否截止项目",
async onOk(){
//确定
await getList()
}
onCancel(){
//取消
}
})
//用then 用async 关闭不了窗口
this.$confirm({
title:"提示",
content:"是否截止项目",
onOk(){
//确定
getList().then(res=>{})
}
onCancel(){
//取消
}
})
antd $confirm无法关闭踩坑
最新推荐文章于 2024-04-15 17:04:49 发布