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 -3
View File
@@ -491,9 +491,6 @@ export default {
this.createNewHandle()
}
},
onUnload() {
this.closeWsFn()
},
methods: {
createdCallbak() {
this.$nextTick(() => {
@@ -541,6 +538,10 @@ export default {
},
// 创建新会话
createNewHandle() {
if (this.audioContext) {
this.audioContext.stop()
}
wx.getBackgroundAudioManager().stop()
if (!this.chatNumber) return
this.closeWsFn()
this.chatNumber = ''