From ce6a0d41eb79cd124be7572fd169ace51471ef30 Mon Sep 17 00:00:00 2001 From: QDKF Date: Tue, 23 Sep 2025 17:37:58 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E4=BD=93=E9=AA=8C=EF=BC=8C=E7=A7=BB=E9=99=A4=E5=8F=91=E9=80=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=92=8C=E6=96=87=E4=BB=B6=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/components/NotificationMessages.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/teacher/message/components/NotificationMessages.vue b/src/views/teacher/message/components/NotificationMessages.vue index 2f15950..803f6e4 100644 --- a/src/views/teacher/message/components/NotificationMessages.vue +++ b/src/views/teacher/message/components/NotificationMessages.vue @@ -1661,9 +1661,8 @@ const handleImage = async (imageData: any) => { // 使用服务器返回的真实ID更新最后读取消息ID await updateLastReadMessage(imageMessage.id) - // 重新加载消息列表以确认服务器存储的数据 - console.log('🔄 重新加载消息列表以确认服务器数据...') - await loadMessages(activeContactId.value) + // 不需要重新加载消息列表,因为消息已经添加到本地列表 + console.log('✅ 图片消息发送成功,无需重新加载') } else { console.warn('⚠️ 服务器未返回图片消息ID,跳过更新最后读取消息') } @@ -1786,9 +1785,8 @@ const handleFile = async (fileData: any) => { // 使用服务器返回的真实ID更新最后读取消息ID await updateLastReadMessage(fileMessage.id) - // 重新加载消息列表以确认服务器存储的数据 - console.log('🔄 重新加载消息列表以确认服务器数据...') - await loadMessages(activeContactId.value) + // 不需要重新加载消息列表,因为消息已经添加到本地列表 + console.log('✅ 文件消息发送成功,无需重新加载') } else { console.warn('⚠️ 服务器未返回文件消息ID,跳过更新最后读取消息') } @@ -2442,7 +2440,7 @@ onMounted(() => { top: 0; right: 0; width: 315px; - height: 76%; + height: 77%; background: #ffffff; z-index: 10; animation: slideInRight 0.3s ease-out;