提交 a559cab9 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

feat: 全部已读或标记已读实时更新顶部未读数目

上级 cf9f7e25
...@@ -169,6 +169,7 @@ export default { ...@@ -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 { ...@@ -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()
}) })
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论