From 2732323c6d8d87f40c41df8ce95c2680962e41d6 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 23 Jan 2025 16:27:16 +0800 Subject: [PATCH] fix: Fix autoplay when tts disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1051950 --user=刘瑞斌 【应用】不关闭自动朗读,直接关闭语言合成模型,还是会自动朗读 https://www.tapd.cn/57709429/s/1650240 --- .../ai-chat/component/operation-button/ChatOperationButton.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index d0ef6c4d9..fe2d91a49 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -278,7 +278,7 @@ const pausePlayAnswerText = () => { onMounted(() => { // 第一次回答后自动播放, 打开历史记录不自动播放 - if (props.tts_autoplay && buttonData.value.write_ed && !buttonData.value.update_time) { + if (props.tts && props.tts_autoplay && buttonData.value.write_ed && !buttonData.value.update_time) { playAnswerText(buttonData.value.answer_text) } })