2017-07-05 14:10:06 +08:00
|
|
|
import React from 'react'
|
2017-07-17 13:49:25 +08:00
|
|
|
|
2017-07-11 10:27:56 +08:00
|
|
|
import { Route, HashRouter } from 'react-router-dom'
|
2017-07-17 12:24:06 +08:00
|
|
|
import { Home, ProjectGroups, Interface, News } from './containers/index'
|
2017-07-17 11:01:05 +08:00
|
|
|
import User from './containers/User/User.js'
|
|
|
|
|
2017-07-14 19:20:52 +08:00
|
|
|
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">
|
2017-07-14 19:20:52 +08:00
|
|
|
<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 13:49:25 +08:00
|
|
|
<Route path="/user" component={User} />
|
2017-07-17 12:24:06 +08:00
|
|
|
<Route path="/News" component={ News } />
|
2017-07-07 17:26:31 +08:00
|
|
|
</div>
|
2017-07-17 13:49:25 +08:00
|
|
|
|
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
|
|
|
|