diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 58e941d2..02012bb8 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -47,7 +47,6 @@ function CoderDepot(props){ const projectsId = props.match.params.projectsId; const branchName = props.match.params.branchName; let pathname = props.history.location.pathname; - useEffect(()=>{ if(props.projectDetail){ setProjectDetail(props.projectDetail); @@ -65,17 +64,17 @@ function CoderDepot(props){ },[treeValue]) useEffect(()=>{ - if (pathname){ + if (pathname && projectDetail){ if(pathname.indexOf(`/projects/${owner}/${projectsId}`) > -1 && pathname.indexOf(`/tree/${branchName}/`) > -1) { let url = pathname.split(`/tree/${branchName}/`)[1]; setTreeValue(url); getFileInfo(url,branchName); }else{ setTreeValue(undefined); - getDirInfo(branchName ||(projectDetail && projectDetail.default_branch)); + getDirInfo(branchName ||projectDetail.default_branch); } } - },[pathname]) + },[pathname,projectDetail]) // 获取主目录列表 function getDirInfo(branch){ diff --git a/src/forge/Team/Group/GroupForm.jsx b/src/forge/Team/Group/GroupForm.jsx index 55829374..cae0efd2 100644 --- a/src/forge/Team/Group/GroupForm.jsx +++ b/src/forge/Team/Group/GroupForm.jsx @@ -139,7 +139,7 @@ export default Form.create()( } return ( - + {groupId ? "基本设置" : "新建团队"}
diff --git a/src/forge/Team/Sub/Detail.jsx b/src/forge/Team/Sub/Detail.jsx index bba0b7de..3979c4c4 100644 --- a/src/forge/Team/Sub/Detail.jsx +++ b/src/forge/Team/Sub/Detail.jsx @@ -78,7 +78,7 @@ function Detail(props){ detail && { detail && 组织成员{detail.num_users && {detail.num_users}}