From 6e695c5fe85684b201258d32fbfa0a6668d858d1 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 11 Aug 2022 17:59:42 +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=E4=B9=9F=E5=8E=BB?= =?UTF-8?q?=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/axios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/axios.js b/src/router/axios.js index d8ecc09..9743413 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -64,7 +64,7 @@ axios.interceptors.response.use(res => { const status = Number(res.status) || 200 const message = res.data.msg || errorCode[status] || errorCode['default'] - if (status === 401) { + if (status === 401 || status === 500) { idx++ if(idx==1){ Message({