mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-08 22:57:11 +08:00
refactor: 修改头像接口调整为 Patch 请求方式
This commit is contained in:
@@ -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 修改用户基本信息 */
|
||||
|
Reference in New Issue
Block a user