diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx index 4268934b..dbfe770f 100644 --- a/src/forge/Main/tree/Index.jsx +++ b/src/forge/Main/tree/Index.jsx @@ -159,7 +159,7 @@ function Index(props) { 下载 - {txt === item.default_branch ? : } + {isManager && (txt === item.default_branch ? : )} ) } @@ -264,7 +264,12 @@ function Index(props) { function addBranchBtn(){ setAddBranch(true); const url = `/v1/${owner}/${projectsId}/branches.json`; - Axios.get(url).then(result=>{ + Axios.get(url,{ + params:{ + page: 1, + limit: total + } + }).then(result=>{ if(result){ const {branches} = result.data; setBranchList(branches); @@ -279,7 +284,7 @@ function Index(props) { {setCurrent(1);setName(value)}} allowClear/>
{isManager && 分支设置} - + {(isManager || isDeveloper) && (projectDetail && projectDetail.type!==2) && }