报错提示
This commit is contained in:
parent
6db8c62171
commit
e1da61a846
|
@ -53,7 +53,7 @@ export default {
|
|||
}
|
||||
result.loading = false;
|
||||
window.console.error(error.response || error.message);
|
||||
if (error.response.data) {
|
||||
if (error.response && error.response.data) {
|
||||
Message.error({message: error.response.data.message, showClose: true});
|
||||
} else {
|
||||
Message.error({message: error.message, showClose: true});
|
||||
|
|
Loading…
Reference in New Issue