Commit 0e601d18 authored by Xiaoming Liu's avatar Xiaoming Liu Committed by 偏右

fix updating badge bug (#289)

fix bug in effects: fetchNotices, after fetching new notices, we should update notice count in user model.
parent e531356a
...@@ -20,6 +20,10 @@ export default { ...@@ -20,6 +20,10 @@ export default {
type: 'saveNotices', type: 'saveNotices',
payload: data, payload: data,
}); });
yield put({
type: 'user/changeNotifyCount',
payload: data.length,
});
}, },
*clearNotices({ payload }, { put, select }) { *clearNotices({ payload }, { put, select }) {
yield put({ yield put({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment