forked from Gitlink/forgeplus-react
Merge pull request '新建分支 根据total获取全部分支' (#509) from durian/forgeplus-react:branch_label_revision into gitlink_server
This commit is contained in:
commit
717a9520b0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue