Merge pull request '新建分支 根据total获取全部分支' (#509) from durian/forgeplus-react:branch_label_revision into gitlink_server

This commit is contained in:
xxq250 2023-02-17 16:10:31 +08:00
commit 717a9520b0
1 changed files with 6 additions and 1 deletions

View File

@ -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);