提交 0e601d18 编写于 作者: X Xiaoming Liu 提交者: 偏右

fix updating badge bug (#289)

fix bug in effects: fetchNotices, after fetching new notices, we should update notice count in user model.
上级 e531356a
......@@ -20,6 +20,10 @@ export default {
type: 'saveNotices',
payload: data,
});
yield put({
type: 'user/changeNotifyCount',
payload: data.length,
});
},
*clearNotices({ payload }, { put, select }) {
yield put({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册