|
|
@ -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, |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|