forked from Gitlink/forgeplus-react
hide
This commit is contained in:
parent
e9763ab932
commit
35ecf20e34
27
src/App.js
27
src/App.js
|
@ -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} /> */}
|
||||
|
||||
|
||||
{/* 个人主页 */}
|
||||
|
|
Loading…
Reference in New Issue