From df1a95f0c2edd2d53770397b93fbc52656f0e289 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sat, 27 Jun 2026 14:50:37 +0800 Subject: [PATCH] fix: re-enable chat text message handler - re-enable and update SEND_MESSAGE_CONTENT_TEXT event listener in ChatMainList - simplify truthy length check for incoming text messages - adjust padding and margin classes for LongTextGuideCardPreview component - add debug log to openDetail function --- src/pages/home/components/ChatMainList/index.vue | 12 ++++++------ .../components/LongTextGuideCardPreview/index.vue | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/pages/home/components/ChatMainList/index.vue b/src/pages/home/components/ChatMainList/index.vue index b1dcd37..dfb61bd 100644 --- a/src/pages/home/components/ChatMainList/index.vue +++ b/src/pages/home/components/ChatMainList/index.vue @@ -447,12 +447,12 @@ const addNoticeListener = () => { // }, 200); // }); - // emitter.on(SEND_MESSAGE_CONTENT_TEXT, (value) => { - // console.log("SEND_MESSAGE_CONTENT_TEXT:", value); - // if (value && value.length > 0) { - // handleReplyText(value); - // } - // }); + emitter.on(SEND_MESSAGE_CONTENT_TEXT, (value) => { + console.log("SEND_MESSAGE_CONTENT_TEXT:", value); + if (value && value.length) { + handleReplyText(value); + } + }); emitter.on(SEND_MESSAGE_COMMAND_TYPE, (item) => { console.log("SEND_MESSAGE_COMMAND_TYPE:", item); diff --git a/src/pages/home/components/LongTextGuideCardPreview/index.vue b/src/pages/home/components/LongTextGuideCardPreview/index.vue index 82d79d1..4cfda63 100644 --- a/src/pages/home/components/LongTextGuideCardPreview/index.vue +++ b/src/pages/home/components/LongTextGuideCardPreview/index.vue @@ -1,9 +1,9 @@