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 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)}`,

Loading…
Cancel
Save