!91 Fix delete currency judgment return status
* Fix delete currency judgment return status
This commit is contained in:
parent
a961ab8277
commit
3da30a2ff7
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 |
|
|
@ -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(()=>{})
|
||||
|
|
|
|||
Loading…
Reference in New Issue