forked from Gitlink/forgeplus-react
Change forums url /project to 404
This commit is contained in:
parent
6950c1a820
commit
c3b2f8f6ad
12
src/App.js
12
src/App.js
|
@ -5,7 +5,8 @@ import zhCN from 'antd/lib/locale-provider/zh_CN';
|
|||
import {
|
||||
BrowserRouter as Router,
|
||||
Route,
|
||||
Switch
|
||||
Switch,
|
||||
Redirect
|
||||
} from 'react-router-dom';
|
||||
import axios from 'axios';
|
||||
import LoginDialog from './modules/login/LoginDialog';
|
||||
|
@ -42,10 +43,10 @@ const theme = createMuiTheme({
|
|||
},
|
||||
});
|
||||
//forge项目
|
||||
const Projects = Loadable({
|
||||
loader: () => import('./forge/Index'),
|
||||
loading: Loading,
|
||||
})
|
||||
// const Projects = Loadable({
|
||||
// loader: () => import('./forge/Index'),
|
||||
// loading: Loading,
|
||||
// })
|
||||
//forge项目-devOps详情
|
||||
const OpsDetail = Loadable({
|
||||
loader: () => import('./forge/DevOps/opsDetail'),
|
||||
|
@ -284,6 +285,7 @@ class App extends Component {
|
|||
</Route> */}
|
||||
{/*404*/}
|
||||
<Route path="/nopage" component={Shixunnopage} />
|
||||
<Redirect from="/projects" to="/nopage"/>
|
||||
{/* 个人主页 */}
|
||||
<Route exact path="/"
|
||||
render={
|
||||
|
|
|
@ -38,7 +38,7 @@ class Index extends Component {
|
|||
return (
|
||||
<div className="newMain clearfix">
|
||||
<Handbook />
|
||||
<Switch {...this.props}>
|
||||
{/* <Switch {...this.props}>
|
||||
<Route
|
||||
path="/projects/:projectsType/new"
|
||||
render={(props) => (
|
||||
|
@ -67,7 +67,7 @@ class Index extends Component {
|
|||
<ProjectIndex {...this.props} {...props} />
|
||||
)}
|
||||
></Route>
|
||||
</Switch>
|
||||
</Switch> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue