From 1e888ae3595a645e789034c68ed4a396e0b1b601 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 9 Sep 2019 19:01:07 +0800 Subject: [PATCH] secret_repository_tab --- public/react/src/modules/tpm/TPMRepositoryComponent.js | 2 +- .../tpm/shixunchild/Repository/RepositoryCodeEditor.js | 2 +- .../tpm/shixunchild/Repository/TPMRepositoryCommits.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/tpm/TPMRepositoryComponent.js b/public/react/src/modules/tpm/TPMRepositoryComponent.js index 97e5f1e85..f4c90b3b4 100644 --- a/public/react/src/modules/tpm/TPMRepositoryComponent.js +++ b/public/react/src/modules/tpm/TPMRepositoryComponent.js @@ -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) diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryCodeEditor.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryCodeEditor.js index 3b05bcb50..51f6e35f2 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryCodeEditor.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryCodeEditor.js @@ -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 diff --git a/public/react/src/modules/tpm/shixunchild/Repository/TPMRepositoryCommits.js b/public/react/src/modules/tpm/shixunchild/Repository/TPMRepositoryCommits.js index d0499a76c..663c5fcf3 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/TPMRepositoryCommits.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/TPMRepositoryCommits.js @@ -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({