@@ -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') )) && }