|
|
@ -33,10 +33,9 @@ class CoderRootDirectory extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
// 获取分支列表
|
|
|
|
// 获取分支列表
|
|
|
|
getBranch=()=>{
|
|
|
|
getBranch=()=>{
|
|
|
|
const { login } = this.props.current_user;
|
|
|
|
|
|
|
|
const { projectsId } = this.props.match.params;
|
|
|
|
const { projectsId } = this.props.match.params;
|
|
|
|
|
|
|
|
|
|
|
|
const url =`/projects/${login}/${projectsId}/branches.json`;
|
|
|
|
const url =`/projects/${projectsId}/branches.json`;
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
if(result){
|
|
|
|
if(result){
|
|
|
|
|
|
|
|
|
|
|
|