import {fromJS} from 'immutable'
import {TYPE} from '../services/userMange'
function userMange(state = fromJS({//此处fromJS是什么作用啊?没查到
//jlError: data.jlError,
//jlSuccess: data.jlSuccess
userMange: {},
}),
action) {
switch (action.type) {
case TYPE.LIST_SUCCESS:
return fromJS({listSUCCESS: action.data});
case TYPE.LIST_ERROR:
return fromJS({listError: action.data});
default:
return state
}
}
咕咕问