diff --git a/src/router/axios.js b/src/router/axios.js index 00fca18..faf8e2c 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)||(res.data.msg=='Cannot invoke "org.springblade.core.secure.BladeUser.getRoleName()" because "user" is null')) { + if ((status === 401 && config._retry)) { // 首次报错时提示 if (!isErrorShown) { isErrorShown = true;