refactor: 优化前端错误提示

This commit is contained in:
chenjianxing 2020-10-13 15:47:51 +08:00
parent 2e6f5df1ef
commit 4b43a2cd8b
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default {
window.console.error(error.response || error.message);
if (error.response && error.response.data) {
if (error.response.headers["authentication-status"] !== "invalid") {
Message.error({message: error.response.data.message, showClose: true});
Message.error({message: error.response.data.message || error.response.data, showClose: true});
}
} else {
Message.error({message: error.message, showClose: true});