From e7362fe992da562a786a656697dd09f1be73235e Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 11 Aug 2022 18:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E6=96=B0=E5=A2=9E=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E5=88=A4=E6=96=AD=20500=20=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=96=87=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/axios.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/router/axios.js b/src/router/axios.js index 9743413..47ff382 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -63,12 +63,11 @@ axios.interceptors.response.use(res => { NProgress.done() const status = Number(res.status) || 200 const message = res.data.msg || errorCode[status] || errorCode['default'] - if (status === 401 || status === 500) { idx++ if(idx==1){ Message({ - message: message, + message: '当前登录状态异常,请重新登录~', type: 'error' }) }