From 78f3270dc58ab3c4993420b26c4e9b992f54bf09 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Wed, 2 Oct 2024 23:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E4=B8=8D=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tabBar/tabBar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/tabBar/tabBar.vue b/components/tabBar/tabBar.vue index 9174323..488cba0 100644 --- a/components/tabBar/tabBar.vue +++ b/components/tabBar/tabBar.vue @@ -147,6 +147,9 @@ console.log('执行了,dianyidain'); } else { // 播放完成,可以在这里添加额外的逻辑 console.log('播放完成'); + //及时释放资源 + innerAudioContext.stop(); + innerAudioContext.destroy(); } }); @@ -162,7 +165,7 @@ console.log('执行了,dianyidain'); this.msgSocket.onMessage(res => { console.log("发出提示音", res); this.getbottom(); - this.dianyidain() + // this.dianyidain() }) }