dev_new_shixunsrepository
杨树明 5 years ago
parent 5be89686a7
commit 43530f6431

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

@ -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 });
}
};

Loading…
Cancel
Save