this.$confirm('你正在进行删除操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then((res)=>{
deleteAction(path.join(this.url.delete, record.id))
this.$message.success(res);
}
).catch((err)=>{
this.$message.warning(err);
})
前端工作总结127-删除做个判断操作 成功删除 取消取消
阅读 110
2022-09-17
this.$confirm('你正在进行删除操作', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then((res)=>{
deleteAction(path.join(this.url.delete, record.id))
this.$message.success(res);
}
).catch((err)=>{
this.$message.warning(err);
})
相关推荐
精彩评论(0)