feat(user-profile): 新增参数构建工具并完善用户资料提交逻辑
- 新建src/utils/userProfile.js工具文件,封装标准化的更新用户资料请求参数构建逻辑 - 重构AddProfile和EditProfile页面的保存逻辑,统一使用工具处理表单数据 - 为AddProfile新增路由参数解析,支持带入reg_source和reg_stage_id请求参数 - 完善EditProfile表单验证,补充性别和轮椅需求的校验逻辑 - 统一项目代码格式,修正多余分号和导入语句风格
Showing
4 changed files
with
39 additions
and
4 deletions
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
src/utils/userProfile.js
0 → 100644
-
Please register or login to post a comment