From f0df682cc6d2983e096ba0936198c25913c86036 Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 29 Sep 2022 17:26:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=8D=E5=BA=94=E6=8B=A6=E6=88=AA=E5=99=A8?= =?UTF-8?q?=EF=BC=8C=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?msg=E5=8F=96=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/request.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/front/src/utils/request.js b/front/src/utils/request.js index 9ff3db0b..4721f5c7 100644 --- a/front/src/utils/request.js +++ b/front/src/utils/request.js @@ -119,12 +119,6 @@ instance.interceptors.response.use( if (_old_href === _new_href) { location.reload() } - - // location.reload() - // 西海岸-不重新加载 - // if(!whoShow.itShowXiHaiAn) { - // location.reload() - // } return response } if (response.headers.redirect === '/#/login') { @@ -150,7 +144,7 @@ instance.interceptors.response.use( location.reload() }, 1000) } - handleCode(code, message, response.headers) + handleCode(code, message || response.data.msg, response.headers) if (loadingInstance) loadingInstance.close() // const { data, config } = response // const { code, msg } = data