refactor: cropper

This commit is contained in:
xingyu
2022-12-21 16:10:28 +08:00
parent 0f562e59c2
commit 91abae8898
13 changed files with 686 additions and 276 deletions

View File

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