changes
This commit is contained in:
@@ -45,7 +45,7 @@ export default {
|
||||
if (this.setdeleted) {
|
||||
let record = await this.$getdata(name, { first: true, filter: { id } });
|
||||
record.deleted = 1;
|
||||
result = await this.$updateapi(name, record);
|
||||
result = await this.$patchapi(name, record);
|
||||
} else result = await this.$deleteapi(name, id);
|
||||
if (result === "error") return this.$dialog("Đã xảy ra lỗi, xóa dữ liệu thất bại", "Lỗi", "Error");
|
||||
this.$snackbar("Dữ liệu đã được xoá khỏi hệ thống", "Success");
|
||||
|
||||
Reference in New Issue
Block a user