mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
22 lines
676 B
JavaScript
22 lines
676 B
JavaScript
import React from 'react'
|
|
import { Route, HashRouter} from 'react-router-dom'
|
|
import { Home, ProjectGroups, Interface } from './containers/index'
|
|
import User from './containers/User/User.js'
|
|
// import UserProfile from './containers/User/Profile.js'
|
|
|
|
import Header from './components/Header/Header'
|
|
|
|
export default () => {
|
|
return (
|
|
<HashRouter>
|
|
<div className="router-main">
|
|
<Header/>
|
|
<Route path="/" component={ Home } exact />
|
|
<Route path="/ProjectGroups" component={ ProjectGroups } />
|
|
<Route path="/Interface" component={ Interface } />
|
|
<Route path="/user" component={User} />
|
|
</div>
|
|
</HashRouter>
|
|
)
|
|
}
|
|
|