Skip to content

Commit 2732323

Browse files
committed
fix: Fix autoplay when tts disabled
--bug=1051950 --user=刘瑞斌 【应用】不关闭自动朗读,直接关闭语言合成模型,还是会自动朗读 https://www.tapd.cn/57709429/s/1650240
1 parent 28f0622 commit 2732323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const pausePlayAnswerText = () => {
278278
279279
onMounted(() => {
280280
// 第一次回答后自动播放, 打开历史记录不自动播放
281-
if (props.tts_autoplay && buttonData.value.write_ed && !buttonData.value.update_time) {
281+
if (props.tts && props.tts_autoplay && buttonData.value.write_ed && !buttonData.value.update_time) {
282282
playAnswerText(buttonData.value.answer_text)
283283
}
284284
})

0 commit comments

Comments
 (0)