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 7dc3a5b64..bca0217cf 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFileupload_file.js @@ -135,25 +135,30 @@ class RepositoryAddFileupload_files extends Component { // }; let matchpath =this.props.match.path; - let Repositoryflagtype =undefined; let Repositoryflag =""; + let newdata; if( matchpath.indexOf("repository")>-1){ Repositoryflag ="repository"; - Repositoryflagtype =undefined; + newdata={ + path:this.state.filspath, + message:this.state.message, + } } + if(matchpath.indexOf("secret_repository")>-1){ Repositoryflag ="secret_repository"; - Repositoryflagtype =true; + newdata={ + path:this.state.filspath, + message:this.state.message, + secret_repository:true + } } + const props = { height:300, multiple: true, - data:{ - path:this.state.filspath, - message:this.state.message, - secret_repository:Repositoryflagtype - }, + data:newdata, fileList:this.state.fileList, // showUploadList:false, action: `${getupload_git_file(shixunId)}`,