From 1f7dda252615d8ed70a05e97590bb7d451a782da Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 1 Apr 2022 19:19:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 23 +++++++++++------------ src/forge/Main/Detail.js | 1 + src/forge/Settings/Setting.js | 5 ++++- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 949f031c..6d45159b 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -75,6 +75,8 @@ function CoderDepot(props){ } if(i && i.length === 0){ setIssuesFlag(false); + console.log(bannerList); + } } },[bannerList]) @@ -431,19 +433,16 @@ function CoderDepot(props){ } - { -
- { - baseOperate && - urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求 - } +
+ { + baseOperate && + urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求 + } + { + issuesFlag && + 疑修 - {/* { - baseOper && - urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 疑修 - } */} -
- } + } +
{ fileOperate && { const { projectsId , owner } = this.props.match.params; - const { private_check } = this.state; + const { private_check , project_units } = this.state; const url = `/${owner}/${projectsId}.json`; axios.put(url, { name: values.project_name, @@ -164,6 +164,9 @@ class Setting extends Component { const { getDetail } = this.props; getDetail && getDetail(); } + if(project_units!==values.project_units){ + window.location.reload(); + } } this.setState({ loading:false