mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
perf: 标记已读/未读等待效果
This commit is contained in:
parent
7befd4277e
commit
c587a50505
@ -918,11 +918,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleReadClick() {
|
handleReadClick() {
|
||||||
|
this.$store.dispatch("showSpinner", 600)
|
||||||
this.$store.dispatch("dialogMsgMark", {
|
this.$store.dispatch("dialogMsgMark", {
|
||||||
dialog_id: this.operateItem.id,
|
dialog_id: this.operateItem.id,
|
||||||
type: $A.getDialogUnread(this.operateItem, true) > 0 ? 'read' : 'unread'
|
type: $A.getDialogUnread(this.operateItem, true) > 0 ? 'read' : 'unread'
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg)
|
$A.modalError(msg)
|
||||||
|
}).finally(_ => {
|
||||||
|
this.$store.dispatch("hiddenSpinner")
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user