在点击函数里变嵌入一下代码
this.$confirm('确认删除?', '系统提示', { confirmButtonText: '确定', cancelButtonText: '取消', cancelButtonClass: 'btn-custom-cancel', type: 'warning' }).then(function(){ console.log("删除成功!"); }) .catch(function(){ console.log("取消成功!"); })