effects: {
*getUser({pyaload}, effects) {
const { select, put, call } = effects;
// 获取当前的 state数据
const { times, id } = yield select(({ user }) => user);
// 等待这个请求返回数据
const result = yield put.resolve({
type: 'getUserList',
payload,
});
yield put({
type: 'save',
payload: result,
});
},
*getUserList({payload}, {call}) {
return yield call()
}
}