mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
解决冲突
This commit is contained in:
parent
198303e5bc
commit
902a9c6810
@ -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 {
|
||||
|
32
client/reducer/interface/InterfaceReducer.js
Normal file
32
client/reducer/interface/InterfaceReducer.js
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user