|
|
@ -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"]); |
|
|
|
|
|
|
|
// 导出方法供外部使用(已在上方定义) |
|
|
|
</script> |
|
|
|