This commit is contained in:
@@ -680,7 +680,7 @@ export const chatMixinsV2 = {
|
|||||||
// this.audioContext.destroy()
|
// 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.isPlayAudio = false
|
||||||
this.audioPlayId = ''
|
this.audioPlayId = ''
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
:class="{
|
:class="{
|
||||||
'playing': audioPlayId === item.conversationId && isPlayAudio
|
'playing': [item.conversationId, item.messageId, item.parentMessageId].includes(audioPlayId) && isPlayAudio
|
||||||
}"
|
}"
|
||||||
class="item"
|
class="item"
|
||||||
@click="ttsHandle(item)"
|
@click="ttsHandle(item)"
|
||||||
|
|||||||
@@ -283,7 +283,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
:class="{
|
:class="{
|
||||||
'playing': audioPlayId === item.conversationId && isPlayAudio
|
'playing': [item.conversationId, item.messageId, item.parentMessageId].includes(audioPlayId) && isPlayAudio
|
||||||
}"
|
}"
|
||||||
class="item"
|
class="item"
|
||||||
@click="ttsHandle(item)"
|
@click="ttsHandle(item)"
|
||||||
|
|||||||
Reference in New Issue
Block a user