From cc2da71891e5afa2a7590d5511d12459b3522320 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 22 Mar 2024 16:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=88=86=E6=94=AF-=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=97=E8=A1=A8=E6=9C=89=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/tree/Index.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx index f4eba0651..57cec0c87 100644 --- a/src/forge/Main/tree/Index.jsx +++ b/src/forge/Main/tree/Index.jsx @@ -136,11 +136,12 @@ function Index(props) { render: (txt, item,key) => { return ( item.is_deleted ? -
+ isManager ?
将基于 Commits{truncateCommitId(item.commit_id)}恢复分支}> -
: +
:"" + :
{ (isManager || isDeveloper) && (projectDetail && projectDetail.type!==2) && @@ -218,9 +219,10 @@ function Index(props) { }).then(res=>{ if(res && res.data){ // 重新请求仓库详情接口,更新分支总数信息 + setIsSpin(true); getDetail(); - setReload(Math.random()); setAddBranch(false); + setTimeout(()=>{getList()},1500); message.success('新建分支成功'); } })