From fa550ba896f3c052deeabe567b45686621e55e08 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 13 Oct 2023 21:50:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index 2c49166..f60febc 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -221,7 +221,7 @@ async function onConversation() { // console.log(`收到消息: `, msg.payload.choices.text[0].content); // console.log(`当前消息: `, dataSources.value[dataSources.value.length - 1].text); lastText += msg.payload.choices.text[0].content - console.log('tts:', msg.payload.choices.tts_text); + console.log('返回的tts:', msg.payload.choices.tts_text); msg.payload.choices.tts_text != '' ? tts.push(msg.payload.choices.tts_text): null; const loading = false nowStart.value = false @@ -239,6 +239,7 @@ async function onConversation() { requestOptions: { prompt: message, options: { ...options } }, }, ) + scrollToBottomIfAtBottom() // 关闭连接 if (msg.header.code != 0 || (event.data && msg.header.status == 2)) { nowStatus.value = 'input'