diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js index 1fe7a6c93..596843f5f 100644 --- a/public/react/config/webpack.config.prod.js +++ b/public/react/config/webpack.config.prod.js @@ -326,8 +326,8 @@ module.exports = { comments: false }, compress: { - drop_debugger: true, - drop_console: true + drop_debugger: false, + drop_console: false } } }), diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js index 0df9a77e4..9c4ae4509 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js @@ -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 }); } };