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() }) }