mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-24 13:14:16 +08:00
router
This commit is contained in:
parent
a37ffc87ea
commit
bae4c05080
@ -2,10 +2,11 @@ import React from 'react'
|
||||
import { Route, HashRouter, Redirect } from 'react-router-dom'
|
||||
import { Home, Login, ProjectGroups } from './containers/index'
|
||||
|
||||
export default store => {
|
||||
export default () => {
|
||||
return (
|
||||
<HashRouter>
|
||||
<div className="router-main">
|
||||
<Redirect from="/" to="/ProjectGroups" />
|
||||
<Route path="/" component={ Home } />
|
||||
<Route path="/Login" component={ Login } />
|
||||
<Route path="/ProjectGroups" component={ ProjectGroups } />
|
||||
|
Loading…
Reference in New Issue
Block a user