From 591974aa6db7d24538e8f3160cb3a8ee1b3d3f62 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Thu, 4 Feb 2021 18:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Team/List.jsx | 3 +++ src/forge/Team/Sub/Detail.jsx | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/forge/Team/List.jsx b/src/forge/Team/List.jsx index 1ef8e8bb..7da85d85 100644 --- a/src/forge/Team/List.jsx +++ b/src/forge/Team/List.jsx @@ -21,6 +21,7 @@ function List(props){ const [ sortDirection , setSortDirection ] = useState("asc"); const OIdentifier = props.match.params.OIdentifier; + const organizeDetail = props.organizeDetail; useEffect(()=>{ if(OIdentifier){ @@ -74,9 +75,11 @@ function List(props){

+ { organizeDetail && organizeDetail.is_admin && organizeDetail.is_member ? + 新建项目 + :""} 排序 diff --git a/src/forge/Team/Sub/Detail.jsx b/src/forge/Team/Sub/Detail.jsx index 79970e14..3979c4c4 100644 --- a/src/forge/Team/Sub/Detail.jsx +++ b/src/forge/Team/Sub/Detail.jsx @@ -83,10 +83,10 @@ function Detail(props){ img={detail.avatar_url} rightBtn={ - {flag && !buttonflag && + {flag && !buttonflag && detail.is_admin ? 设置 - } + :""} {buttonflag && 组织成员{detail.num_users && {detail.num_users}} @@ -129,7 +129,7 @@ function Detail(props){ { - return + return }} >