This commit is contained in:
caishi 2021-08-27 15:44:26 +08:00
parent e9763ab932
commit 35ecf20e34
1 changed files with 12 additions and 15 deletions

View File

@ -73,19 +73,16 @@ const EducoderLogin = Loadable({
loader: () => import('./modules/login/EducoderLogin'),
loading: Loading,
})
const Search = Loadable({
loader: () => import('./modules/search/'),
loading: Loading,
})
const WikiPreview = Loadable({
loader: () => import('./forge/Wiki/Preview'),
loading: Loading,
})
// const Search = Loadable({
// loader: () => import('./search/SearchPage'),
// loading: Loading,
// })
// const WikiPreview = Loadable({
// loader: () => import('./forge/Wiki/Preview'),
// loading: Loading,
// })
const ProjectIndex = Loadable({
loader: () => import("./forge/Index"),
loading: Loading,
});
class App extends Component {
constructor(props) {
super(props);
@ -202,11 +199,11 @@ class App extends Component {
<Router>
<Switch>
{/* wiki预览 */}
<Route path="/projects/:owner/:projectsId/wiki/preview/:projectName/:projectId" render={
{/* <Route path="/projects/:owner/:projectsId/wiki/preview/:projectName/:projectId" render={
(props) => {
return (<WikiPreview {...this.props} {...props} {...this.state} />)
}
} />
} /> */}
{/*项目*/}
<Route
@ -241,7 +238,7 @@ class App extends Component {
<Route path="/nopage" component={Shixunnopage} />
{/* 查询 */}
<Route path="/search" component={Search} />
{/* <Route path="/search" component={Search} /> */}
{/* 个人主页 */}