Fix(AI):[#3611]一个用户在问答过程中退了,然后又进入重新生成一个会话,需要关闭ws
This commit is contained in:
@@ -67,6 +67,9 @@ export const chatMixins = {
|
||||
}
|
||||
}.bind(this)).exec()
|
||||
},
|
||||
onUnload() {
|
||||
this.closeWsFn()
|
||||
},
|
||||
created() {
|
||||
const _this = this
|
||||
uni.getSystemInfo({
|
||||
|
||||
@@ -264,6 +264,7 @@ export default {
|
||||
// 创建新会话
|
||||
createNewHandle() {
|
||||
if (!this.chatNumber) return
|
||||
this.closeWsFn()
|
||||
this.chatNumber = ''
|
||||
this.showCursor = false
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user