解决冲突

This commit is contained in:
waliang.wang 2017-07-18 11:57:42 +08:00
parent 198303e5bc
commit 902a9c6810
2 changed files with 33 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import LoginRedux from './reducer/Login/Login_redux.js'
import login from './reducer/Login/login.js'
import group from './reducer/group/group.js'
import project from './reducer/group/project.js'
import Interface from './reducer/Interface/InterfaceReducer.js'
import Interface from './reducer/interface/InterfaceReducer.js'
import news from './reducer/news/news.js'
export default {

View File

@ -0,0 +1,32 @@
import {
FETCH_INTERFACE_DATA,
LIST_INTERFACE_CLICK,
PROJECT_MEMBER_INTERFACE
} from '../../constants/action-types.js'
const initialState = {
interfaceData: null,
modalVisible: false
}
export default (state = initialState, action) => {
switch (action.type) {
case FETCH_INTERFACE_DATA:
return {
...state,
interfaceData: action.payload
}
case LIST_INTERFACE_CLICK:
return {
...state,
modalVisible: true
}
case PROJECT_MEMBER_INTERFACE:
return {
...state,
modalVisible: false
}
default:
return state
}
}