[高] 前端登录FormData与Content-Type不匹配 #75

Closed
opened 2026-05-10 18:39:08 +08:00 by admin · 0 comments
Owner

问题描述

frontend/src/stores/user.ts 第30-38行,登录请求使用 FormData 构建请求体,但没有设置 Content-Type: multipart/form-data(axios默认 application/json),导致后端无法正确解析表单数据。

涉及文件

  • frontend/src/stores/user.ts:30-38

修复建议

使用 JSON 格式发送登录请求,或确保 Content-Type 与 body 格式一致。

严重程度

高 - 用户登录失败

## 问题描述 frontend/src/stores/user.ts 第30-38行,登录请求使用 FormData 构建请求体,但没有设置 Content-Type: multipart/form-data(axios默认 application/json),导致后端无法正确解析表单数据。 ## 涉及文件 - frontend/src/stores/user.ts:30-38 ## 修复建议 使用 JSON 格式发送登录请求,或确保 Content-Type 与 body 格式一致。 ## 严重程度 高 - 用户登录失败
admin closed this issue 2026-05-10 18:59:08 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/aiagent#75