refactor: 修改头像接口调整为 Patch 请求方式

This commit is contained in:
jasmine
2025-04-08 07:39:25 +00:00
committed by Charles7c
parent d1c1e9a287
commit 40280da314

View File

@@ -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 修改用户基本信息 */