From e525c4824845342fc77db83864fc95ce895da198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Thu, 29 Jan 2026 09:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=BA=93=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=AF=BC=E8=88=AA=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepotReadme.jsx | 4 ++-- src/forge/Main/Detail.js | 6 ++++++ src/modules/tpm/TPMIndexHOC.js | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/forge/Main/CoderDepotReadme.jsx b/src/forge/Main/CoderDepotReadme.jsx index c1ca3ab9d..743ad7e06 100644 --- a/src/forge/Main/CoderDepotReadme.jsx +++ b/src/forge/Main/CoderDepotReadme.jsx @@ -41,7 +41,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){ return(
- + {/* */}
@@ -62,7 +62,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){ :"" }
- + {/* */} { content &&
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index c3e067eef..4d10af458 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -241,6 +241,9 @@ class Detail extends Component { this.props.clearProject(e) }) } + // 获取id为indexHOC的元素,添加class名称header-none + let indexHOC = document.getElementById("indexHOC"); + indexHOC && indexHOC.classList.add("header-none"); } @@ -283,6 +286,9 @@ class Detail extends Component { } componentWillUnmount() { this.timerChannel && clearTimeout(this.timerChannel); + // 删除class名称header-none + let indexHOC = document.getElementById("indexHOC"); + indexHOC && indexHOC.classList.remove("header-none"); } getProject = async (data) => { diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js index 0a07b5bcd..ce77b01a4 100644 --- a/src/modules/tpm/TPMIndexHOC.js +++ b/src/modules/tpm/TPMIndexHOC.js @@ -296,10 +296,10 @@ export function TPMIndexHOC(WrappedComponent) { }; let path =this.props.location.pathname; let pathCheck = path.indexOf("/zone")>-1 && path.indexOf("/newdetail")>-1 && isPhone(); - const headerNone = ['/explore'].includes(this.props.match.path) || ['/:OIdentifier', '/:username'].includes(this.props.match.path) && path.split('/').length>=3; + const headerNone = ['/explore'].includes(this.props.match.path); return ( -
+
{(!path || (path && !path.includes('glcc') )) && }