mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-07 14:25:40 +00:00
perf: 优化再次点击消息定位到未读、待办、灰色未读
This commit is contained in:
parent
68bd66089a
commit
0ba161f4c5
@ -556,6 +556,9 @@ export default {
|
||||
|
||||
shakeUnread() {
|
||||
let index = this.dialogList.findIndex(dialog => $A.getDialogNum(dialog) > 0)
|
||||
if (index === -1) {
|
||||
index = this.dialogList.findIndex(dialog => dialog.todo_num > 0)
|
||||
}
|
||||
if (index === -1) {
|
||||
index = this.dialogList.findIndex(dialog => $A.getDialogUnread(dialog, true) > 0)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user