mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
perf: 标记已读/未读等待效果
This commit is contained in:
parent
7befd4277e
commit
c587a50505
@ -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")
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user