Fix(云灵AI):[#5383, #5386]1、点击语音播放按钮后,再次点击按钮,没有暂停播放内容,而是会重新播放;2、历史对话详情页-点击语音播放按钮,文字颜色没有跟随变化

This commit is contained in:
lifizer
2026-06-25 16:24:01 +08:00
parent 492ad9e6d4
commit 34d9e21896
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ export const chatMixinsV2 = {
// this.audioContext.destroy()
}
// 如果正在播放,点击当前播放的则认为是暂停
if (this.isPlayAudio && item.conversationId === this.audioPlayId) {
if (this.isPlayAudio && [item.conversationId, item.messageId, item.parentMessageId].includes(this.audioPlayId)) {
this.isPlayAudio = false
this.audioPlayId = ''
return
+1 -1
View File
@@ -109,7 +109,7 @@
</view>
<view
:class="{
'playing': audioPlayId === item.conversationId && isPlayAudio
'playing': [item.conversationId, item.messageId, item.parentMessageId].includes(audioPlayId) && isPlayAudio
}"
class="item"
@click="ttsHandle(item)"
+1 -1
View File
@@ -283,7 +283,7 @@
</view>
<view
:class="{
'playing': audioPlayId === item.conversationId && isPlayAudio
'playing': [item.conversationId, item.messageId, item.parentMessageId].includes(audioPlayId) && isPlayAudio
}"
class="item"
@click="ttsHandle(item)"