this.$confirm('您确定删除这条数据吗?').then(suc => { console.log('确认') console.log(suc)}).catch(err => { console.log('取消') console.log(err)})參考播客:https://blog.csdn.net/kxukai/article/details/103480181