update patrol
This commit is contained in:
11
web-react/src/store/reducer/business.js
Normal file
11
web-react/src/store/reducer/business.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const business = (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case 'PATROL_INIT_GRADE_BY_COMPLETED_DATE':
|
||||
const _state = { ...state, completedDate: action.value }
|
||||
return _state
|
||||
default:
|
||||
return state
|
||||
}
|
||||
}
|
||||
|
||||
export default business
|
||||
@@ -3,12 +3,14 @@ import user from './user'
|
||||
import layout from './layout'
|
||||
import nav from './nav'
|
||||
import dictData from './dict-data'
|
||||
import business from './business'
|
||||
|
||||
const combine = combineReducers({
|
||||
user,
|
||||
layout,
|
||||
nav,
|
||||
dictData
|
||||
dictData,
|
||||
business
|
||||
})
|
||||
|
||||
export default combine
|
||||
Reference in New Issue
Block a user