Commit 51e1ffeb authored by Xiaoming Liu's avatar Xiaoming Liu Committed by 偏右

fixed clearNotices effects in global model (#266)

Reorder the process in "clearNotices"
parent 0d00edd8
...@@ -22,16 +22,15 @@ export default { ...@@ -22,16 +22,15 @@ export default {
}); });
}, },
*clearNotices({ payload }, { put, select }) { *clearNotices({ payload }, { put, select }) {
yield put({
type: 'saveClearedNotices',
payload,
});
const count = yield select(state => state.global.notices.length); const count = yield select(state => state.global.notices.length);
yield put({ yield put({
type: 'user/changeNotifyCount', type: 'user/changeNotifyCount',
payload: count, payload: count,
}); });
yield put({
type: 'saveClearedNotices',
payload,
});
}, },
}, },
......
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