From d12946c937540952dea9330f0adbbb106e65d4f8 Mon Sep 17 00:00:00 2001 From: zCans <1224895921@qq.com> Date: Tue, 29 Nov 2022 16:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96token=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=9C=AA=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- neutrino-proxy-admin/src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutrino-proxy-admin/src/utils/request.js b/neutrino-proxy-admin/src/utils/request.js index 2bc8a5f7..a13d52a0 100644 --- a/neutrino-proxy-admin/src/utils/request.js +++ b/neutrino-proxy-admin/src/utils/request.js @@ -34,7 +34,7 @@ service.interceptors.response.use( type: 'error', duration: 5 * 1000 }) - if (res.code === 4 && !window.location.href.endsWith('#/login')) { + if ((res.code === 4 || res.code === 1) && !window.location.href.endsWith('#/login')) { store.dispatch('FedLogOut').then(() => { location.reload() // 为了重新实例化vue-router对象 避免bug })