From 591f45477ee31ac72abf84c2e9a94c14e9f790d7 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 28 Nov 2022 11:54:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E5=89=8D?= =?UTF-8?q?=E7=AB=AFajax=E5=AF=B9=E4=BA=8E=E8=BF=94=E5=9B=9E=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/sdk-parent/frontend/src/plugins/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/plugins/request.js b/framework/sdk-parent/frontend/src/plugins/request.js index b0268777a5..310ad336cd 100644 --- a/framework/sdk-parent/frontend/src/plugins/request.js +++ b/framework/sdk-parent/frontend/src/plugins/request.js @@ -101,7 +101,7 @@ instance.interceptors.response.use(response => { return response; }, error => { let msg; - if (error.response) { + if (error.response && error.response.headers) { // 判断错误标记 if (error.response.status === 402) { if (error.response.headers['redirect']) {