|
@ -151,14 +151,13 @@ |
|
|
if (result.code != 200) { |
|
|
if (result.code != 200) { |
|
|
Message.error("操作失败"); |
|
|
Message.error("操作失败"); |
|
|
this.swicthLight =!e |
|
|
this.swicthLight =!e |
|
|
console.log(this.swicthLight) |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
this.$modal.msgSuccess(text + "成功"); |
|
|
this.$modal.msgSuccess(text + "成功"); |
|
|
this.swicthLight=e |
|
|
this.swicthLight=e |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.AddMethods(); |
|
|
this.AddMethods(); |
|
|
}, 1000); |
|
|
}, 3000); |
|
|
}).catch((error)=>{ |
|
|
}).catch((error)=>{ |
|
|
console.error('请求失败:', error); |
|
|
console.error('请求失败:', error); |
|
|
this.swicthLight = !e; |
|
|
this.swicthLight = !e; |
|
|