feat: 添加路由以及actionType

This commit is contained in:
qitmac000249 2017-07-17 12:24:06 +08:00
parent 627bc885d0
commit 86330a75c6
3 changed files with 9 additions and 2 deletions

View File

@ -2,10 +2,12 @@ import LoginRedux from './reducer/Login/Login_redux.js'
import login from './reducer/Login/login.js'
import group from './reducer/group/group.js'
import Interface from './reducer/Interface/InterfaceReducer.js'
import news from './reducer/news/news.js'
export default {
group,
login,
LoginRedux,
Interface
Interface,
news
}

View File

@ -16,3 +16,7 @@ export const REGISTER = 'REGISTER';
//header
export const LOGIN_TYPE = 'LOGIN_TYPE';
// News
export const FETCH_NEWS_DATA = 'FETCH_NEWS_DATA'

View File

@ -1,6 +1,6 @@
import React from 'react'
import { Route, HashRouter } from 'react-router-dom'
import { Home, ProjectGroups, Interface } from './containers/index'
import { Home, ProjectGroups, Interface, News } from './containers/index'
import Header from './components/Header/Header'
export default () => {
@ -11,6 +11,7 @@ export default () => {
<Route path="/" component={ Home } exact />
<Route path="/ProjectGroups" component={ ProjectGroups } />
<Route path="/Interface" component={ Interface } />
<Route path="/News" component={ News } />
</div>
</HashRouter>
)