From 75551dd91b28d9055501d59e9da02c8ed58976f2 Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Sat, 19 Apr 2025 10:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ios=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AIchat.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 9fdeb2d..3029fad 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -155,11 +155,14 @@ const playAudio = (url) => { const pauseAudio = () => { if (audioStore.soundInstance) { // 添加移动端特殊处理 - if (/iPhone|iPad|iPod/.test(navigator.userAgent)) { - Howler.pause(); // iOS需要强制停止音频上下文 - } else { - audioStore.soundInstance.pause(); - } + // if (/iPhone|iPad|iPod/.test(navigator.userAgent)) { + // Howler.pause(); // iOS需要强制停止音频上下文 + // } else { + // audioStore.soundInstance.pause(); + // } + + audioStore.soundInstance.pause(); + audioStore.isPlaying = false; // // 添加状态同步