diff --git a/src/models/global.js b/src/models/global.js index 91127ed2cc0cc90be29a66faaf267d1bdd88d53e..8af75a6a0e50b042c500f5d251e82502cc870671 100644 --- a/src/models/global.js +++ b/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, - }); }, },