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