dev_aliyun2
杨树明 5 years ago committed by harry
parent 60ad89995e
commit 6db92812d5

@ -326,8 +326,8 @@ module.exports = {
comments: false comments: false
}, },
compress: { compress: {
drop_debugger: true, drop_debugger: false,
drop_console: true drop_console: false
} }
} }
}), }),

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

Loading…
Cancel
Save