提交 be15b2c1 authored 作者: 钟是志's avatar 钟是志

22562 黔南一站式移动端新增待办消息上线滚动显示

上级 da649da7
...@@ -12,6 +12,7 @@ const myCollect = { ...@@ -12,6 +12,7 @@ const myCollect = {
state: { state: {
user: {}, // 用户数据 user: {}, // 用户数据
todoListApps: [], todoListApps: [],
todoListMessage: [],
}, },
effects: { effects: {
/** /**
...@@ -39,6 +40,12 @@ const myCollect = { ...@@ -39,6 +40,12 @@ const myCollect = {
todoListApps: Array.from(appIds), todoListApps: Array.from(appIds),
}, },
}); });
yield put({
type: 'todoInfo',
payload: {
todoListMessage: response,
},
});
} }
if (callback && typeof callback === 'function') { if (callback && typeof callback === 'function') {
callback(response); callback(response);
...@@ -293,6 +300,12 @@ const myCollect = { ...@@ -293,6 +300,12 @@ const myCollect = {
nom(state, action) { nom(state, action) {
return { ...state }; return { ...state };
}, },
todoInfo(state, { payload } ) {
return {
...state,
todoListMessage: payload.todoListMessage,
}
},
todoList(state, { payload }) { todoList(state, { payload }) {
return { return {
...state, ...state,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论