Commit c55aca42 by zhangleyuan

feat:去除限制

parent b07d2468
...@@ -344,10 +344,11 @@ class SelectPrepareFileModal extends React.Component { ...@@ -344,10 +344,11 @@ class SelectPrepareFileModal extends React.Component {
nonCompliantFileList.push(file); nonCompliantFileList.push(file);
_fileList.splice(index, 1); _fileList.splice(index, 1);
} }
console.log('type',type);
//mac的企业微信环境下加accept不起作用,所以需要我们在选择完成后做一层限制 //mac的企业微信环境下加accept不起作用,所以需要我们在选择完成后做一层限制
if(accept && _accept.indexOf("."+_.last(name.split('.')).toLowerCase()) === -1){ // if(accept && _accept.indexOf("."+_.last(name.split('.')).toLowerCase()) === -1){
_fileList.splice(index, 1); // _fileList.splice(index, 1);
} // }
file.key = count++; file.key = count++;
}); });
console.log("nonCompliantFileList",nonCompliantFileList); console.log("nonCompliantFileList",nonCompliantFileList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment