From 40280da314710e2b7f17d7bc5d66cded0048d507 Mon Sep 17 00:00:00 2001 From: jasmine <362055143@qq.com> Date: Tue, 8 Apr 2025 07:39:25 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E6=8E=A5=E5=8F=A3=E8=B0=83=E6=95=B4=E4=B8=BA=20Patch?= =?UTF-8?q?=20=E8=AF=B7=E6=B1=82=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/system/user-profile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/system/user-profile.ts b/src/apis/system/user-profile.ts index a1241b7..822e753 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 修改用户基本信息 */