http.js:放行401拦截
This commit is contained in:
parent
1ea5849fa8
commit
6b2d2302d2
@ -155,8 +155,8 @@ axios.interceptors.response.use(
|
||||
// 未登录则跳转登录页面,并携带当前页面的路径
|
||||
// 在登录成功后返回当前页面,这一步需要在登录页操作。
|
||||
case 401:
|
||||
Message.error('会话已失效,请重新登录')
|
||||
logout()
|
||||
// Message.error('会话已失效,请重新登录')
|
||||
// logout()
|
||||
break
|
||||
|
||||
// 403 token过期
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user