secret_repository_tab

dev_cs
hjm 6 years ago
parent c9582775ed
commit 1e888ae359

@ -79,7 +79,7 @@ class TPMRepositoryComponent extends Component {
let url = `/shixuns/${id}/file_content.json`;
axios.post(url, {
path: path,
secret_repository: this.props.secret_repository
secret_repository: this.props.secret_repository_tab
}).then((response) => {
trace_collapse('repository res: ', response)

@ -121,7 +121,7 @@ class RepositoryCodeEditor extends Component {
const path = pathArray.join('/')
this.setState({ codeSaving: true })
axios.post(url, {
secret_repository: this.props.secret_repository,
secret_repository: this.props.secret_repository_tab,
content: this.extend_editor.getValue(),
// type: forTest === true ? 1 : 0,
path: path

@ -34,7 +34,9 @@ class TPMRepositoryCommits extends Component {
let id = this.props.match.params.shixunId;
let collaborators=`/shixuns/`+id+`/commits.json`;
axios.post(collaborators).then((response)=> {
axios.post(collaborators, {
secret_repository: this.props.secret_repository_tab
}).then((response)=> {
if(response.status===200){
this.setState({

Loading…
Cancel
Save