From b425ee8d09d60f2778248eff7454838175d27fca Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Fri, 3 Jan 2020 16:40:35 +0800 Subject: [PATCH] fix --- public/react/src/forge/Main/CoderRootDirectory.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/react/src/forge/Main/CoderRootDirectory.js b/public/react/src/forge/Main/CoderRootDirectory.js index 6ae882015..152ed5358 100644 --- a/public/react/src/forge/Main/CoderRootDirectory.js +++ b/public/react/src/forge/Main/CoderRootDirectory.js @@ -33,10 +33,9 @@ class CoderRootDirectory extends Component{ // 获取分支列表 getBranch=()=>{ - const { login } = this.props.current_user; const { projectsId } = this.props.match.params; - const url =`/projects/${login}/${projectsId}/branches.json`; + const url =`/projects/${projectsId}/branches.json`; axios.get(url).then((result)=>{ if(result){