From 1d4a80ebd6b8c7fad5eb381de22fd9d7d276a6fb Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 5 Jan 2024 16:58:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E5=8A=A9=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppResidentAssistant/AppResidentAssistant.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue b/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue index f58d312..59bcdf9 100644 --- a/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue +++ b/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue @@ -13,12 +13,12 @@
-
+
- - - + + +

{{item.content || ''}}

@@ -215,7 +215,7 @@ export default { }) }, play(src, index) { - innerAudioContext.stop(); + // innerAudioContext.stop(); this.messageList.map((item) => { if(item.sdkFileUrl) { item.isPlay = false @@ -223,7 +223,10 @@ export default { }) this.messageList[index].isPlay = true innerAudioContext.src = src; - innerAudioContext.play(); + + this.$nextTick(() => { + innerAudioContext.play(); + }) innerAudioContext.onEnded(() => { this.messageList[index].isPlay = false })