mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-16 03:58:12 +00:00
fix: 对话窗口js报错
This commit is contained in:
parent
82d4077e4d
commit
bc4b73cd2e
@ -867,7 +867,7 @@ export default {
|
||||
this.allMsgs = newList;
|
||||
//
|
||||
if (!this.windowActive || (tail > 10 && oldList.length > 0)) {
|
||||
const lastId = oldList[oldList.length - 1].id
|
||||
const lastId = oldList[oldList.length - 1] ? oldList[oldList.length - 1].id : 0
|
||||
const tmpList = newList.filter(item => item.id && item.id > lastId)
|
||||
this.msgNew += tmpList.length
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user