From cbce5d10cdaaffae41f09f88d2c918f08c732cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 22 Sep 2023 16:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5=E7=BB=93?= =?UTF-8?q?=E6=9D=9Floading=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Team/Component/UploadImage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forge/Team/Component/UploadImage.jsx b/src/forge/Team/Component/UploadImage.jsx index eb1d4a68e..8db17f100 100644 --- a/src/forge/Team/Component/UploadImage.jsx +++ b/src/forge/Team/Component/UploadImage.jsx @@ -30,11 +30,11 @@ function UploadImage({ getImage , url, getImageId, maxSize = 2, action = getUplo if (!isLt2M) { message.error(`上传的图片不能超过${maxSize}MB!`); } + isJpgOrPng && isLt2M && setLoading(true); return isJpgOrPng && isLt2M; } // 上传完成后 function handleChange(info){ - setLoading(true); if(info && info.file && info.file.status === "done"){ setLoading(false); getImageId && getImageId(info.file.response.id);