ITADN

fix: axios 响应拦截器请求出错时 status 的判断逻辑

#8Pull RequestLeslieLiang98 创建于 2024-08-17
L
LeslieLiang98commented
只有当 status === 0(请求出错)时才需要处理 error <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **新功能** - 更新了API响应处理逻辑,增强了错误处理机制,确保在遇到状态码不为`1`时触发错误处理流程。 <!-- end of auto-generated comment: release notes by coderabbit.ai -->
合并状态:未合并 关闭于 2024-08-17 1 条评论