Commit 0089d027 by renmanyi

feat:分片上传

parent ba4e2f23
...@@ -151,11 +151,13 @@ class UploadProgressModal extends React.Component { ...@@ -151,11 +151,13 @@ class UploadProgressModal extends React.Component {
}, },
}) })
.then(res => { .then(res => {
console.log('res----', res);
file.status = 'success'; file.status = 'success';
this.setState({ fileList }); this.setState({ fileList });
this.props.onUpload(fileContent, resourceId); this.props.onUpload(fileContent, resourceId);
}) })
.catch(err => { .catch(err => {
console.log('err----', err);
file.status = 'fail'; file.status = 'fail';
this.setState({ fileList }); this.setState({ fileList });
}); });
......
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