fix:关闭头像上传时,又自动打开

reactor:头像上传时,通过前端 httpRequest ,可支持前端直传
This commit is contained in:
YunaiV
2025-04-30 20:35:16 +08:00
parent 165ce58abb
commit ef90faf77b
3 changed files with 19 additions and 14 deletions

View File

@@ -32,10 +32,11 @@ export interface ProfileVO {
}
export interface UserProfileUpdateReqVO {
nickname: string
email: string
mobile: string
sex: number
nickname?: string
email?: string
mobile?: string
sex?: number
avatar?: string
}
// 查询用户个人信息
@@ -58,8 +59,3 @@ export const updateUserPassword = (oldPassword: string, newPassword: string) =>
}
})
}
// 用户头像上传
export const uploadAvatar = (data) => {
return request.upload({ url: '/system/user/profile/update-avatar', data: data })
}