补充pure用户头像上传功能

This commit is contained in:
tyjctl
2024-09-24 14:44:06 +08:00
parent 38e112fb06
commit 8e66a9880c
5 changed files with 50 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ export const updateUserProfile = data => {
/** 只修改用户头像 */
export const updateUserIcon = data => {
return http.request<Result>("put", `/account/icon`, { data: { icon: data } });
return http.request<Result>("put", `/account/icon`, { data });
};
/** 用户密码重置 */