perf: 标记已读/未读等待效果

This commit is contained in:
kuaifan 2023-10-31 23:34:03 +08:00
parent 7befd4277e
commit c587a50505

View File

@ -918,11 +918,14 @@ export default {
},
handleReadClick() {
this.$store.dispatch("showSpinner", 600)
this.$store.dispatch("dialogMsgMark", {
dialog_id: this.operateItem.id,
type: $A.getDialogUnread(this.operateItem, true) > 0 ? 'read' : 'unread'
}).catch(({msg}) => {
$A.modalError(msg)
}).finally(_ => {
this.$store.dispatch("hiddenSpinner")
})
},