From c440b60d9723713f9ea9793e2c2d905bf3c73b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Wed, 24 Jan 2024 14:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=B7=B3=E8=BD=ACissue=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=B5=E5=B9=B6=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Issues/Pages/list.jsx | 4 ++++ src/forge/Issues/Pages/sign.jsx | 10 ++++++++-- src/forge/Main/CoderDepot.jsx | 4 ++-- src/forge/Main/sub/DetailBanner.jsx | 4 ++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/forge/Issues/Pages/list.jsx b/src/forge/Issues/Pages/list.jsx index ef242b710..081f4eb4b 100644 --- a/src/forge/Issues/Pages/list.jsx +++ b/src/forge/Issues/Pages/list.jsx @@ -77,6 +77,10 @@ function List(props){ }else{ Init(); } + // 标签列表页点击跳转issue列表页并筛选 + if (props.location.state && props.location.state.issue) { + chooseTagFunc(props.location.state.issue) + } },[]) useEffect(()=>{ diff --git a/src/forge/Issues/Pages/sign.jsx b/src/forge/Issues/Pages/sign.jsx index bed42dbcc..645b8a7e5 100644 --- a/src/forge/Issues/Pages/sign.jsx +++ b/src/forge/Issues/Pages/sign.jsx @@ -189,6 +189,12 @@ function Sign(props){ c && setDefaultColor(`#${c}`); setEdit(true); } + + // 标签列表页点击跳转issue列表页并筛选 + function toIssues(issue) { + props.history.push({ pathname: `/${owner}/${projectsId}/issues`, state: { issue: issue } }); + } + return(
- {i.name} + toIssues(i) }>{i.name}

{i.description}

- {i.issues_count || 0} 疑修 + toIssues(i) } >{i.issues_count || 0} 疑修 {/* {i.pull_requests_count || 0} 合并请求 */}

diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index c6cd4d56d..fe570e020 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -511,9 +511,9 @@ function CoderDepot(props){ } { checkIfLogin && checkIfLogin()? - eventTrack(`/${owner}/${projectsId}/webIDE/tree/${branchName||defaultBranch}`)}>Web IDE

+ eventTrack(`/${owner}/${projectsId}/webIDE/tree/${branchName||defaultBranch}`)}>Web IDE : - {showLoginDialog(`/${owner}/${projectsId}`)}}>Web IDE
+ {showLoginDialog(`/${owner}/${projectsId}`)}}>Web IDE } diff --git a/src/forge/Main/sub/DetailBanner.jsx b/src/forge/Main/sub/DetailBanner.jsx index fc4196afd..f5c3d6b47 100644 --- a/src/forge/Main/sub/DetailBanner.jsx +++ b/src/forge/Main/sub/DetailBanner.jsx @@ -98,7 +98,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
  • {/* */} - 引擎(Engine)
    + 引擎(Engine) {projectDetail && projectDetail.ops_count ? {projectDetail.ops_count} : ""}
  • @@ -138,7 +138,7 @@ function DetailBanner({ history,list , owner , projectsId ,showNotification , ur
  • - 服务
    + 服务
  • }