fix: add self check to resume speech synthesis in ChatOperationButton

--bug=1058777 --user=刘瑞斌 【应用】开启语音自动播放,浏览器播放,暂停第一次对话的播放后,进行第二次对话,自动播放会先继续播放上一次对话 https://www.tapd.cn/62980211/s/1731474
This commit is contained in:
CaptainB 2025-07-15 12:01:49 +08:00
parent 95263d147b
commit 21c8f6ffbf

View File

@ -464,7 +464,7 @@ class AudioManage {
this.statusList[index] = AudioStatus.ERROR
}
} else {
if (window.speechSynthesis.paused) {
if (window.speechSynthesis.paused && self) {
window.speechSynthesis.resume()
this.statusList[index] = AudioStatus.PLAY_INT
} else {