报错提示

This commit is contained in:
chenjianxing 2020-06-01 18:36:48 +08:00
parent 6db8c62171
commit e1da61a846
1 changed files with 1 additions and 1 deletions

View File

@ -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});