Skip to content

Commit

Permalink
fix: Fix autoplay when tts disabled
Browse files Browse the repository at this point in the history
--bug=1051950 --user=刘瑞斌 【应用】不关闭自动朗读,直接关闭语言合成模型,还是会自动朗读 https://www.tapd.cn/57709429/s/1650240
  • Loading branch information
liuruibin committed Jan 23, 2025
1 parent 28f0622 commit 2732323
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 2732323

Please sign in to comment.