关于弹窗是点击空白还是自定义关闭 添加distinguishCancelAndClose:true属性即可
直接上代码
this.$confirm('请选择是否带图片','提示',{
confirmButtonText:"不带图片",
cancelButtonText:"带图片",
type:"waring",
distinguishCancelAndClose:true
}).then({}=>{})
.catch((action)=>{
if(action==='cancel'){}//判断是否是自定义关闭
})