diff --git a/src/App.js b/src/App.js index 0103aec8..0fc569b1 100644 --- a/src/App.js +++ b/src/App.js @@ -140,7 +140,7 @@ class App extends Component { document.title = "loading..."; this.disableVideoContextMenu(); history.listen(() => { - this.forceUpdate() + this.forceUpdate(); const $ = window.$ $("html").animate({ scrollTop: $('html').scrollTop() - 0 }) }); @@ -226,24 +226,9 @@ class App extends Component { - {/* */} this.Modifyloginvalue()}> - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - + - {/*项目*/} - {/* { - return () - } - }> - */} ( @@ -264,25 +249,9 @@ class App extends Component { )} > - {/*项目*/} - {/* { - return () - } - }> - */} {/*403*/} - {/* { - return () - } - }> - */} {/*404*/} @@ -294,7 +263,6 @@ class App extends Component { ) } /> - {/* */} diff --git a/src/forums/Index.jsx b/src/forums/Index.jsx index 8807b5ba..09382a4a 100644 --- a/src/forums/Index.jsx +++ b/src/forums/Index.jsx @@ -25,6 +25,11 @@ const New = Loadable({ loading: Loading, }); class Index extends Component { + componentDidUpdate=()=>{ + this.props.history.listen(()=>{ + + }) + } render() { return (