Browse Source

fix updating badge bug (#289)

fix bug in effects: fetchNotices, after fetching new notices, we should update notice count in user model.
pull/307/head
Xiaoming Liu 8 years ago
committed by 偏右
parent
commit
0e601d18df
  1. 4
      src/models/global.js

4
src/models/global.js

@ -20,6 +20,10 @@ export default {
type: 'saveNotices',
payload: data,
});
yield put({
type: 'user/changeNotifyCount',
payload: data.length,
});
},
*clearNotices({ payload }, { put, select }) {
yield put({

Loading…
Cancel
Save