Fix(AI):[#3949]语音播放AI回复内容,返回AI主页、小程序首页,语音仍在播放

This commit is contained in:
lifizer
2025-07-01 15:56:09 +08:00
parent 8b21a232fe
commit 5cf21bf46c
3 changed files with 22 additions and 5 deletions
+4 -2
View File
@@ -77,9 +77,11 @@ export const chatMixins = {
}.bind(this)).exec()
},
onUnload() {
if (this.audioContext) {
this.audioContext.stop()
}
wx.getBackgroundAudioManager().stop()
this.closeWsFn()
// console.log('在页面卸载时取消监听')
// wx.offKeyboardHeightChange()
},
created() {
const _this = this