From 55bfda55e84ee8aaca2d7a187261a59b4740266f Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Wed, 5 Feb 2025 13:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86token=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= 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 6ecb60a..00fca18 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -167,7 +167,7 @@ axios.interceptors.response.use(res => { } // 如果是401并且已经重试过,直接跳转到登录页面 - if (status === 401 && config._retry) { + if ((status === 401 && config._retry)||(res.data.msg=='Cannot invoke "org.springblade.core.secure.BladeUser.getRoleName()" because "user" is null')) { // 首次报错时提示 if (!isErrorShown) { isErrorShown = true;