broker.js
588 Bytes
import * as types from '../constants/ActionTypes';
const initialState = {
qrcodeFansEchart: {},
qrcodeFansList : {}
};
export default function environment(state = initialState, action) {
switch (action.type) {
case types.QRCODE_FANS_ECHART:
return Object.assign({}, state, {
qrcodeFansEchart: action.qrcodeFansEchart
});
case types.QRCODE_FANS_LIST:
return Object.assign({}, state, {
qrcodeFansList: action.qrcodeFansList
});
default:
return state;
}
}