mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
17 lines
505 B
JavaScript
17 lines
505 B
JavaScript
import React from 'react'
|
|
import { Route, HashRouter } from 'react-router-dom'
|
|
import { Home, Login, ProjectGroups, Interface } from './containers/index'
|
|
|
|
export default () => {
|
|
return (
|
|
<HashRouter>
|
|
<div className="router-main">
|
|
<Route path="/" component={ Home } />
|
|
<Route path="/Login" component={ Login } />
|
|
<Route path="/ProjectGroups" component={ ProjectGroups } />
|
|
<Route path="/Interface" component={ Interface } />
|
|
</div>
|
|
</HashRouter>
|
|
)
|
|
}
|