fix bug in effects: fetchNotices, after fetching new notices, we should update notice count in user model.
@@ -20,6 +20,10 @@ export default {
type: 'saveNotices',
payload: data,
});
+ yield put({
+ type: 'user/changeNotifyCount',
+ payload: data.length,
+ });
},
*clearNotices({ payload }, { put, select }) {
yield put({