Skip to content

Commit

Permalink
fix: 修复后端接口响应 code 数据类型变动引发的登录过期提示失效
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 13, 2024
1 parent 917cd43 commit f321030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f321030

Please sign in to comment.