mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-12 12:54:48 +08:00
19 lines
574 B
JavaScript
19 lines
574 B
JavaScript
import React from 'react'
|
|
import { Route, HashRouter } from 'react-router-dom'
|
|
import { Home, ProjectGroups, Interface, News } from './containers/index'
|
|
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="/News" component={ News } />
|
|
</div>
|
|
</HashRouter>
|
|
)
|
|
}
|