diff --git a/src/forge/Team/Component/UploadImage.jsx b/src/forge/Team/Component/UploadImage.jsx index eb1d4a68..8db17f10 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);