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