|
|
@ -2138,6 +2138,12 @@ async function handleSendMessage(input, onComplete) { |
|
|
|
}); |
|
|
|
isRotating.value = false; |
|
|
|
messages.value = [...previousMessages, ...messages.value]; |
|
|
|
|
|
|
|
// 第一个接口请求失败后触发自动滚动 |
|
|
|
nextTick(() => { |
|
|
|
scrollToBottom(); |
|
|
|
}); |
|
|
|
|
|
|
|
// 调用完成回调,重新启用输入框 |
|
|
|
if (onComplete && typeof onComplete === "function") { |
|
|
|
onComplete(); |
|
|
|