From 3b283e8f1f2ad0252cfd8c91c5827c8f83352ada Mon Sep 17 00:00:00 2001 From: httpsjt <362055143@qq.com> Date: Tue, 8 Apr 2025 15:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=B4=E5=83=8F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BD=BF=E7=94=A8Patch=E8=AF=B7=E6=B1=82=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E3=80=82?= 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 修改用户基本信息 */ -- Gitee