|
|
|
@ -502,7 +502,7 @@ class TPMDataset extends Component {
|
|
|
|
|
//上传前的操作
|
|
|
|
|
console.log('beforeUpload', file);
|
|
|
|
|
// this.props.showNotification(`文件上传中`);
|
|
|
|
|
const isLt400M = file.size / 1024 / 1024 <= 1;
|
|
|
|
|
const isLt400M = file.size / 1024 / 1024 <= 400;
|
|
|
|
|
|
|
|
|
|
if (!isLt400M) {
|
|
|
|
|
this.props.showNotification('文件大小必须小于等于400MB!');
|
|
|
|
|