From 0192b97ec26bc9b11cecf9085c29521620de31b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Tue, 10 Jan 2023 13:52:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E7=94=B5?= =?UTF-8?q?=E8=84=91=E4=B8=8A=E4=BC=A0md=E6=A0=BC=E5=BC=8F=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E6=B3=95=E4=B8=8A=E4=BC=A0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Upload/Index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/forge/Upload/Index.js b/src/forge/Upload/Index.js index f979fe7f5..a53c16571 100644 --- a/src/forge/Upload/Index.js +++ b/src/forge/Upload/Index.js @@ -61,11 +61,6 @@ class Index extends Component { handleChange = (info) => { const { changeIsComplete } = this.props; changeIsComplete && changeIsComplete(true); - const file = info.file; - if(file && !file.type){ - let flag = this.checkFile(file.name); - if(!flag) return; - } if (info.file.status === 'uploading' || info.file.status === 'done' || info.file.status === 'removed') { let fileList = info.fileList; this.setState({ fileList: appendFileSizeToUploadFileAll(fileList) }); @@ -99,7 +94,7 @@ class Index extends Component { let flag = this.checkFile(file.name); if(!flag){ this.props.showNotification(`暂不支持此格式文件的上传!`); - return; + return false; } } const { size } = this.props;