From 2eae3d18c812a715c28c055aba82d3924250880a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 17 Feb 2023 15:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=86=E6=94=AF=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AEtotal=E8=8E=B7=E5=8F=96=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/tree/Index.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx index 4268934b..e89f6ae7 100644 --- a/src/forge/Main/tree/Index.jsx +++ b/src/forge/Main/tree/Index.jsx @@ -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);