dev_new_shixunsrepository
杨树明 5 years ago
parent 33c8f5668e
commit c332c71bbd

@ -135,25 +135,30 @@ class RepositoryAddFileupload_files extends Component {
// }; // };
let matchpath =this.props.match.path; let matchpath =this.props.match.path;
let Repositoryflagtype =undefined;
let Repositoryflag =""; let Repositoryflag ="";
let newdata;
if( matchpath.indexOf("repository")>-1){ if( matchpath.indexOf("repository")>-1){
Repositoryflag ="repository"; Repositoryflag ="repository";
Repositoryflagtype =undefined; newdata={
path:this.state.filspath,
message:this.state.message,
}
} }
if(matchpath.indexOf("secret_repository")>-1){ if(matchpath.indexOf("secret_repository")>-1){
Repositoryflag ="secret_repository"; Repositoryflag ="secret_repository";
Repositoryflagtype =true; newdata={
path:this.state.filspath,
message:this.state.message,
secret_repository:true
}
} }
const props = { const props = {
height:300, height:300,
multiple: true, multiple: true,
data:{ data:newdata,
path:this.state.filspath,
message:this.state.message,
secret_repository:Repositoryflagtype
},
fileList:this.state.fileList, fileList:this.state.fileList,
// showUploadList:false, // showUploadList:false,
action: `${getupload_git_file(shixunId)}`, action: `${getupload_git_file(shixunId)}`,

Loading…
Cancel
Save