|
|
|
@ -29,6 +29,7 @@ class RepositoryAddFileupload_files extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleChange = (info) => {
|
|
|
|
|
console.log(info)
|
|
|
|
|
|
|
|
|
|
if (info.file.status === 'done'||info.file.status === "uploading") {
|
|
|
|
|
|
|
|
|
@ -44,11 +45,13 @@ class RepositoryAddFileupload_files extends Component {
|
|
|
|
|
fileList = fileList.slice(-2);
|
|
|
|
|
fileList = fileList.map(file => {
|
|
|
|
|
if (file.response) {
|
|
|
|
|
file.url = file.response.url;
|
|
|
|
|
if (file.response.status===0) {
|
|
|
|
|
this.props.showNotification("上传成功")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return file;
|
|
|
|
|
});
|
|
|
|
|
this.props.showNotification("上传成功")
|
|
|
|
|
|
|
|
|
|
this.setState({ fileList });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|