修复部分电脑上传md格式文件无法上传的问题

This commit is contained in:
何童崇 2023-01-10 13:52:19 +08:00
parent be3157f9c4
commit 0192b97ec2
1 changed files with 1 additions and 6 deletions

View File

@ -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;