From e003a93b7695e9c8ace0c848d5457d1f342c8f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Sat, 16 Aug 2025 15:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=83=85=E7=BB=AA=E5=A4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=90=9C=E7=B4=A2=E8=82=A1=E7=A5=A8=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E6=9F=A5=E7=9C=8B=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E4=B8=80=E7=9B=B4=E7=A6=81=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 75277f2..2880f6f 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -632,6 +632,9 @@ const addStock = (stockData) => { startHeightObserver(); // 立即滚动到底部 scrollToBottom(); + + // 6. 历史记录加载完成后,通知父组件重新启用输入框 + emit('enableInput'); }); }; @@ -3320,7 +3323,7 @@ onUnmounted(() => { }); // 声明组件可以触发的事件 -const emit = defineEmits(["updateMessage", "sendMessage", "ensureAIchat"]); +const emit = defineEmits(["updateMessage", "sendMessage", "ensureAIchat", "enableInput"]); // 导出方法供外部使用(已在上方定义)