From cb95e50a82d16e751ca740bdb75ac6b564c93a2f Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 18 Jun 2021 16:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=BA=93=EF=BC=9A=E4=BB=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E8=AF=A6=E6=83=85=E5=88=87=E6=8D=A2=E5=88=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=97=E8=A1=A8=E6=97=B6=EF=BC=8C=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=96=87=E4=BB=B6=E5=92=8C=E6=96=B0=E5=BB=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=8C=89=E9=92=AE=E6=B2=A1=E6=9C=89=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index b1c384652..7aaab83d8 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -79,9 +79,11 @@ function CoderDepot(props){ let url = pathname.split(`/tree/${branchName}/`)[1]; setTreeValue(url); getFileInfo(url,branchName); + setType("file"); }else{ setTreeValue(undefined); getDirInfo(branchName || defaultBranch); + setType("dir"); } } },[projectsId,owner,pathname,defaultBranch]) @@ -244,7 +246,6 @@ function CoderDepot(props){ const { current_user } = props; const fileOperate = type === "dir" && projectDetail && projectDetail.type !== 2 && (projectDetail.permission !=="Reporter" || (current_user && current_user.admin)); - return( setOpenModal(false)} onOk={okUpdate}/>