|
@@ -393,17 +393,13 @@ export default {
|
|
|
status: status + '' === "1" ? "0" : "1",
|
|
|
};
|
|
|
const res = await asyncRequest.status(model);
|
|
|
- if (res && res.code === 0) {
|
|
|
+ if (res && res.code === 1) {
|
|
|
this.$notify.success({
|
|
|
title: "删除成功",
|
|
|
message: "",
|
|
|
});
|
|
|
this.searchList();
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
- await this.logout();
|
|
|
- } else {
|
|
|
- this.$message.warning(res.message);
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
console.log("取消");
|
|
@@ -452,11 +448,7 @@ export default {
|
|
|
message: "",
|
|
|
});
|
|
|
await this.searchList();
|
|
|
- } else if (res && res.code >= 100 && res.code <= 104) {
|
|
|
- await this.logout();
|
|
|
- } else {
|
|
|
- this.$message.warning(res.message);
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
.catch(() => {
|
|
|
console.log("取消");
|