From f76198b674df0e148c9743a3cf48376c4afd8009 Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Mon, 21 Apr 2025 11:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=B5=84=E6=BA=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E6=B3=95=E7=9B=91=E5=90=AC=E5=B7=B2=E8=AF=BB?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/dialog/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pages/dialog/index.vue b/src/pages/dialog/index.vue index 214af40..194b43b 100644 --- a/src/pages/dialog/index.vue +++ b/src/pages/dialog/index.vue @@ -1566,6 +1566,16 @@ watch( } }) } + } else if (lastIndex === 0 && newValue[0].file_num) { + // 新消息和旧消息的id相同,说明没有比它更新的消息需要处理。但是资源文件是预创建的,需要处理 + console.error('预创建资源文件==================') + const msg = newValue[0] + nextTick(() => { + const element = document.getElementById(`zp-id-${msg.msg_id}`) + if (element) { + messageRecordElementRefs.value.unshift(element) + } + }) } } }