diff --git a/src/apis/system/user-profile.ts b/src/apis/system/user-profile.ts index a1241b704bcc632b0da6cd72b605f3d0134b47e0..822e75330fc8951116d164e34bcd4dfe6fb4ca36 100644 --- a/src/apis/system/user-profile.ts +++ b/src/apis/system/user-profile.ts @@ -5,7 +5,7 @@ const BASE_URL = '/user/profile' /** @desc 上传头像 */ export function uploadAvatar(data: FormData) { - return http.post(`${BASE_URL}/avatar`, data) + return http.patch(`${BASE_URL}/avatar`, data) } /** @desc 修改用户基本信息 */