rwadurian/frontend/admin-web/src/app/(dashboard)/authorization
hailin 00264a721e fix(admin-web): 优化授权页面错误提示,显示后端真实错误信息
问题:创建授权失败时只显示"Request failed with status code 400"
用户无法了解失败的真实原因(如用户未种树、授权冲突等)

修复:
- handleCreate和handleRevoke的catch块优先从err.response.data.message提取后端错误
- 后端已有完善的错误提示如"用户尚未认种任何树,无法授权"
- 前端现在能正确显示这些提示帮助管理员了解真实情况

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 21:38:00 -08:00
..
authorization.module.scss feat(authorization): add admin authorization management API and real data integration 2026-01-03 18:50:10 -08:00
page.tsx fix(admin-web): 优化授权页面错误提示,显示后端真实错误信息 2026-01-08 21:38:00 -08:00