vue根据id删除
expurgate(gcid) {
console.log(gcid);
this.¥confirm(“此操作将永久删除该文件, 是否继续?”, “提示”, {
confirmButtonText: “确定”,
cancelButtonText: “取消”,
type: “warning”,
})
.then(() => {
cancel(gcid).then((result) => {
console.log(result);
if (result.gcid === 200) {
this.pageList();
} else {
console.log(111);
}
this.pageList();
});
this.¥message({
type: “success”,
message: “删除成功!”,
});
})
.catch(() => {
this.$message({
type: “info”,
message: “已取消删除”,
});
});
},