fix: Fix autoplay when tts disabled

--bug=1051950 --user=刘瑞斌 【应用】不关闭自动朗读,直接关闭语言合成模型,还是会自动朗读 https://www.tapd.cn/57709429/s/1650240
This commit is contained in:
CaptainB 2025-01-23 16:27:16 +08:00 committed by 刘瑞斌
parent 28f06222de
commit 2732323c6d

View File

@ -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)
}
})