提交 44b09f6d authored 作者: 李仕聪's avatar 李仕聪
...@@ -19,6 +19,9 @@ const myCollect = { ...@@ -19,6 +19,9 @@ const myCollect = {
pageInfo: { pageInfo: {
totalPage: 1, totalPage: 1,
total: 0, total: 0,
},
waitPageParams: {
}, },
}, },
effects: { effects: {
...@@ -29,6 +32,10 @@ const myCollect = { ...@@ -29,6 +32,10 @@ const myCollect = {
* @param {pageNo} 页码 * @param {pageNo} 页码
*/ */
*getBacklog({ payload, callback }, { call, put }) { *getBacklog({ payload, callback }, { call, put }) {
yield put({
type: 'saveWaitPageParams',
payload: payload,
});
const response = yield call(uaaRequest, `${api}/getWaitPage`, { const response = yield call(uaaRequest, `${api}/getWaitPage`, {
...payload, ...payload,
}); });
...@@ -360,6 +367,12 @@ const myCollect = { ...@@ -360,6 +367,12 @@ const myCollect = {
...state, ...state,
pageInfo: payload, pageInfo: payload,
}; };
},
saveWaitPageParams(state, { payload } ) {
return {
...state,
waitPageParams: payload,
}
}, },
}, },
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论