From 7af9f1e761c283d31777989e2c8cff71d0802380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 7 Apr 2023 16:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B4=E5=83=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/user-info/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compenents/user-info/index.tsx b/src/compenents/user-info/index.tsx index 452be9a..54b15b3 100644 --- a/src/compenents/user-info/index.tsx +++ b/src/compenents/user-info/index.tsx @@ -38,7 +38,7 @@ export const UserInfoModel: React.FC = ({ open, onCancel }) => { name: "file", multiple: false, method: "PUT", - action: config.app_url + "/api/v1/user/avatar", + action: config.app_url + "api/v1/user/avatar", headers: { Accept: "application/json", authorization: "Bearer " + getToken(), @@ -63,8 +63,6 @@ export const UserInfoModel: React.FC = ({ open, onCancel }) => { } } else if (status === "error") { message.error(`${info.file.name} 上传失败`); - } else { - message.error("上传失败"); } }, };