Browse Source

fixed clearNotices effects in global model (#266)

Reorder the process in "clearNotices"
pull/273/head
Xiaoming Liu 8 years ago
committed by 偏右
parent
commit
51e1ffebdf
  1. 9
      src/models/global.js

9
src/models/global.js

@ -22,16 +22,15 @@ export default {
});
},
*clearNotices({ payload }, { put, select }) {
yield put({
type: 'saveClearedNotices',
payload,
});
const count = yield select(state => state.global.notices.length);
yield put({
type: 'user/changeNotifyCount',
payload: count,
});
yield put({
type: 'saveClearedNotices',
payload,
});
},
},

Loading…
Cancel
Save