Files
sionrui/frontend/api/axios/client.js
sion123 a32f118281 fix: 修复clientAxios中on401/on403回调未传递error参数的问题
问题:
- client.js中调用on401()和on403()时未传递error对象
- 导致http.js中接收到undefined的error参数
- 影响AuthService.handleAuthError的错误处理逻辑

修复:
- 业务码401/403:先创建error对象,再传递给回调函数
- HTTP状态码401/403:直接传递error对象给回调函数
- 确保error对象包含完整的错误信息(code、data等)

影响范围:
- frontend/api/axios/client.js

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 01:00:20 +08:00

3.5 KiB