mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 12:57:11 +08:00
fix: 修复后端接口响应 code 数据类型变动引发的登录过期提示失效
This commit is contained in:
@@ -72,7 +72,7 @@ http.interceptors.response.use(
|
||||
}
|
||||
|
||||
// Token 失效
|
||||
if (code === 401 && response.config.url !== '/auth/user/info') {
|
||||
if (code === '401' && response.config.url !== '/auth/user/info') {
|
||||
modalErrorWrapper({
|
||||
title: '提示',
|
||||
content: msg,
|
||||
|
Reference in New Issue
Block a user