Commit e2da9548 authored by 王苓芝's avatar 王苓芝

文件格式限制

parent 5b1e9608
......@@ -43,7 +43,6 @@ class PicturesWall extends React.Component {
};
beforeUpload = file => {
console.log('files', file);
const types = ['application/pdf', 'image/png', 'image/jpeg'];
if (types.indexOf(file.type) === -1) {
notification.error('输入格式有问题');
......
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