This commit is contained in:
杨鹏
2025-10-17 09:19:15 +08:00
parent 38ad4637a1
commit cba6d7bbc1
+1 -1
View File
@@ -122,7 +122,7 @@ http.interceptors.response.use(
response.config.custom.showLoading && closeLoading();
// 自定义处理【error 错误提示】:如果需要显示错误提示,则显示错误提示
if (response.data.code !== 0) {
if (response.data.code !== 0 && response.data.code !== 200) {
// 特殊:如果 401 错误码,则跳转到登录页 or 刷新令牌
if (response.data.code === 401) {
return refreshToken(response.config);