1. effects: {
    2. *getUser({pyaload}, effects) {
    3. const { select, put, call } = effects;
    4. // 获取当前的 state数据
    5. const { times, id } = yield select(({ user }) => user);
    6. // 等待这个请求返回数据
    7. const result = yield put.resolve({
    8. type: 'getUserList',
    9. payload,
    10. });
    11. yield put({
    12. type: 'save',
    13. payload: result,
    14. });
    15. },
    16. *getUserList({payload}, {call}) {
    17. return yield call()
    18. }
    19. }