fix: avatar

This commit is contained in:
xingyu4j
2022-11-16 16:35:51 +08:00
parent 770bf45f01
commit d8be452fd8
2 changed files with 114 additions and 97 deletions

View File

@ -73,5 +73,5 @@ export const updateUserPwdApi = (oldPassword: string, newPassword: string) => {
// 用户头像上传
export const uploadAvatarApi = (data) => {
return request.upload({ url: '/system/user/profile/update-avatar', data: data })
return request.put({ url: '/system/user/profile/update-avatar', data })
}