From bc4b73cd2e3a8f9304a46c9e2b38ec6a4620f131 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 24 Nov 2022 14:44:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=B9=E8=AF=9D=E7=AA=97=E5=8F=A3js?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/components/DialogWrapper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 96906e42b..4a9b78116 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -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 {