修改数据集上传大小

chromesetting
杨树明 5 years ago
parent 86dcc504c7
commit 1108d180b3

@ -473,11 +473,11 @@ class TPMDataset extends Component {
beforeUpload: (file) => {
//上传前的操作
// console.log('beforeUpload', file.name);
const isLt150M = file.size / 1024 / 1024 < 150;
if (!isLt150M) {
this.props.showNotification('文件大小必须小于150MB!');
const isLt300M = file.size / 1024 / 1024 <= 300;
if (!isLt300M) {
this.props.showNotification('文件大小必须小于等于300MB!');
}
return isLt150M;
return isLt300M;
},
};
// console.log("showmodelshowmodel");

Loading…
Cancel
Save