From c332c71bbd164d04503a851b79678844e1724d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 7 Jan 2020 14:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RepositoryAddFileupload_file.js | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) 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)}`,