!91 Fix delete currency judgment return status

* Fix delete currency judgment return status
This commit is contained in:
pushuo 2023-05-10 02:16:46 +00:00 committed by Edward Yang
parent a961ab8277
commit 3da30a2ff7
3 changed files with 6 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -172,7 +172,12 @@
type: 'warning'
}).then(() => {
$http.delete('currencies/' + id).then((res) => {
this.$message.success(res.message);
if (res.status == 'fail') {
layer.msg(res.message, () => {});
return;
}
layer.msg(res.message);
self.currencies.splice(index, 1)
})
}).catch(()=>{})