From e1da61a846d3d0e2e5da1063ed15e79fcf16770b Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 1 Jun 2020 18:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/common/js/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/common/js/ajax.js b/frontend/src/common/js/ajax.js index 13844ed30a..531940e680 100644 --- a/frontend/src/common/js/ajax.js +++ b/frontend/src/common/js/ajax.js @@ -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});