Change forums url /project to 404

This commit is contained in:
sylor_huang@126.com 2020-10-15 14:18:31 +08:00
parent 6950c1a820
commit c3b2f8f6ad
2 changed files with 9 additions and 7 deletions

View File

@ -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={

View File

@ -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>
);
}