yapi/client/routes.js

22 lines
676 B
JavaScript
Raw Normal View History

2017-07-05 14:10:06 +08:00
import React from 'react'
2017-07-17 11:01:05 +08:00
import { Route, HashRouter} from 'react-router-dom'
import { Home, ProjectGroups, Interface } from './containers/index'
2017-07-17 11:01:05 +08:00
import User from './containers/User/User.js'
// import UserProfile from './containers/User/Profile.js'
import Header from './components/Header/Header'
2017-07-05 14:10:06 +08:00
2017-07-10 20:28:03 +08:00
export default () => {
2017-07-05 14:10:06 +08:00
return (
2017-07-09 21:47:19 +08:00
<HashRouter>
2017-07-07 17:26:31 +08:00
<div className="router-main">
<Header/>
2017-07-14 14:44:32 +08:00
<Route path="/" component={ Home } exact />
2017-07-07 17:26:31 +08:00
<Route path="/ProjectGroups" component={ ProjectGroups } />
2017-07-11 19:12:13 +08:00
<Route path="/Interface" component={ Interface } />
2017-07-17 11:01:05 +08:00
<Route path="/user" component={User} />
</div>
2017-07-09 21:47:19 +08:00
</HashRouter>
2017-07-05 14:10:06 +08:00
)
2017-07-10 20:26:49 +08:00
}
2017-07-17 11:01:05 +08:00