Merge pull request #843 from dataease/pr@dev@feat_noyification_msg

feat: 全部已读或标记已读实时更新顶部未读数目
This commit is contained in:
fit2cloud-chenyw 2021-09-22 11:04:35 +08:00 committed by GitHub
commit df28ba462b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,7 @@ export default {
allMarkReaded() { allMarkReaded() {
allRead().then(res => { allRead().then(res => {
this.$success(this.$t('webmsg.mark_success')) this.$success(this.$t('webmsg.mark_success'))
bus.$emit('refresh-top-notification')
this.search() this.search()
}) })
}, },
@ -180,6 +181,7 @@ export default {
const param = this.multipleSelection.map(item => item.msgId) const param = this.multipleSelection.map(item => item.msgId)
batchRead(param).then(res => { batchRead(param).then(res => {
this.$success(this.$t('webmsg.mark_success')) this.$success(this.$t('webmsg.mark_success'))
bus.$emit('refresh-top-notification')
this.search() this.search()
}) })
}, },