filterMenu.js
349 Bytes
import {CHANGETYPE} from '../constants/filterMenu'
const INITIAL_STATE = {
curType: 0,
indexType: 0
}
export default function filterMenu (state = INITIAL_STATE, action) {
switch (action.type) {
case CHANGETYPE:
return {
...state,
curType: action.curType,
indexType: action.indexType
}
default:
return state
}
}