mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
feat: 添加路由以及actionType
This commit is contained in:
parent
627bc885d0
commit
86330a75c6
@ -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
|
||||
}
|
||||
|
@ -16,3 +16,7 @@ export const REGISTER = 'REGISTER';
|
||||
|
||||
//header
|
||||
export const LOGIN_TYPE = 'LOGIN_TYPE';
|
||||
|
||||
// News
|
||||
export const FETCH_NEWS_DATA = 'FETCH_NEWS_DATA'
|
||||
|
||||
|
@ -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>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user