This commit is contained in:
caishi 2021-10-22 11:25:44 +08:00
parent 44f06b7305
commit 254b3173d1
3 changed files with 13 additions and 20 deletions

View File

@ -19,10 +19,11 @@ function Footer(){
return( return(
<div> <div>
{value && showhtml(value)} {/* {value && showhtml(value)} */}
{/* <div style={{height:"443px"}}></div> <div style={{height:"483px"}}></div>
<div className="newFooter edu-txt-center"> <div className="newFooter edu-txt-center">
<div className="footEdition"> {value && showhtml(value)}
{/* <div className="footEdition">
<div className="footContent"> <div className="footContent">
<ul className="center"> <ul className="center">
<img src={""} alt="Gitlink确实开源" height="29px"/> <img src={""} alt="Gitlink确实开源" height="29px"/>
@ -57,8 +58,8 @@ function Footer(){
</ul> </ul>
</div> </div>
<p className="copyrightDesc">©Copyright 20072021 国防科技大学Gitlink团队 & IntelliDE <br/>湘ICP备 17009477</p> <p className="copyrightDesc">©Copyright 20072021 国防科技大学Gitlink团队 & IntelliDE <br/>湘ICP备 17009477</p>
</div> */}
</div> </div>
</div>*/}
</div> </div>
) )
} }

View File

@ -60,12 +60,6 @@ class Index extends Component {
<ProjectNew {...this.props} {...props} /> <ProjectNew {...this.props} {...props} />
)} )}
></Route> ></Route>
{/* <Route
path="/:owner/:projectsId"
render={(props) => (
<ProjectDetail {...this.props} {...props} />
)}
></Route> */}
<Route <Route
path="/explore" path="/explore"
render={(props) => ( render={(props) => (
@ -73,12 +67,12 @@ class Index extends Component {
)} )}
></Route> ></Route>
<Route {/* <Route
path="/" path="/"
render={(props) => ( render={(props) => (
<ProjectIndex {...this.props} {...props} /> <ProjectIndex {...this.props} {...props} />
)} )}
></Route> ></Route> */}
</Switch> </Switch>
</div> </div>
); );
@ -90,10 +84,3 @@ export default withRouter(
parentSelector: ".newMain", parentSelector: ".newMain",
})(CNotificationHOC()(SnackbarHOC()(TPMIndexHOC(Index)))) })(CNotificationHOC()(SnackbarHOC()(TPMIndexHOC(Index))))
); );
// export default withRouter(
// ImageLayerOfCommentHOC({
// imgSelector: ".imageLayerParent img, .imageLayerParent .imageTarget",
// parentSelector: ".newMain",
// })(Index)
// );

View File

@ -150,10 +150,15 @@ export function TPMIndexHOC(WrappedComponent) {
} }
fetchUsers = () => { fetchUsers = () => {
console.log(this.props.match)
if (this.props.match.path === "/") { if (this.props.match.path === "/") {
this.setState({ this.setState({
publicNav:false publicNav:false
}) })
}else{
this.setState({
publicNav:true
})
} }
let url = `/users/get_user_info.json`; let url = `/users/get_user_info.json`;
axios.get(url).then((response) => { axios.get(url).then((response) => {