forked from Gitlink/forgeplus-react
This commit is contained in:
parent
ea8b5ece1a
commit
191e79e05a
36
src/App.js
36
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 {
|
|||
<Provider store={store}>
|
||||
<ConfigProvider locale={zhCN}>
|
||||
<MuiThemeProvider theme={theme}>
|
||||
{/* <Accountnewprofile {...this.props}{...this.state} /> */}
|
||||
<LoginDialog {...this.props} {...this.state} Modifyloginvalue={() => this.Modifyloginvalue()}></LoginDialog>
|
||||
{/* <Notcompletedysl {...this.props} {...this.state}></Notcompletedysl> */}
|
||||
{/* <Trialapplicationysl {...this.props} {...this.state}></Trialapplicationysl> */}
|
||||
{/* <Trialapplicationreview {...this.props} {...this.state}></Trialapplicationreview> */}
|
||||
{/* <AccountProfile {...this.props} {...this.state} /> */}
|
||||
{/* <Certifiedprofessional {...this.props} {...this.state} ModalCancelsy={this.ModalCancelsy} ModalshowCancelsy={this.ModalshowCancelsy} /> */}
|
||||
<Router>
|
||||
<Router>
|
||||
<Switch>
|
||||
{/*项目*/}
|
||||
{/* <Route
|
||||
path={"/projects/:projectId/ops/:opsId/detail"}
|
||||
render={
|
||||
(props) => {
|
||||
return (<OpsDetail {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
}>
|
||||
</Route> */}
|
||||
<Route
|
||||
path="/accounts/:login"
|
||||
render={(props) => (
|
||||
|
@ -264,25 +249,9 @@ class App extends Component {
|
|||
<Forums {...this.props} {...this.state} {...props} />
|
||||
)}
|
||||
></Route>
|
||||
{/*项目*/}
|
||||
{/* <Route
|
||||
path={"/projects"}
|
||||
render={
|
||||
(props) => {
|
||||
return (<Projects {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
}>
|
||||
</Route> */}
|
||||
{/*403*/}
|
||||
<Route path="/403" component={Shixunauthority} />
|
||||
<Route path="/500" component={http500} />
|
||||
{/* <Route path={"/organize"}
|
||||
render={
|
||||
(props) => {
|
||||
return (<OrganizeIndex {...this.props} {...props} {...this.state} />)
|
||||
}
|
||||
}>
|
||||
</Route> */}
|
||||
{/*404*/}
|
||||
<Route path="/nopage" component={Shixunnopage} />
|
||||
<Redirect from="/projects" to="/nopage"/>
|
||||
|
@ -294,7 +263,6 @@ class App extends Component {
|
|||
)
|
||||
}
|
||||
/>
|
||||
{/* <Route component={Shixunnopage} /> */}
|
||||
</Switch>
|
||||
</Router>
|
||||
</MuiThemeProvider>
|
||||
|
|
|
@ -25,6 +25,11 @@ const New = Loadable({
|
|||
loading: Loading,
|
||||
});
|
||||
class Index extends Component {
|
||||
componentDidUpdate=()=>{
|
||||
this.props.history.listen(()=>{
|
||||
|
||||
})
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<div className="newMain">
|
||||
|
|
Loading…
Reference in New Issue