fix: bug

This commit is contained in:
杨航
2025-09-05 16:58:54 +08:00
parent bff2099444
commit d0ed925a97
3 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -719,7 +719,7 @@ onHide(() => {
//#ifdef APP-PLUS
uni.offKeyboardHeightChange(setHeight)
// #endif
if (watchFlag.value === 1) return
// if (watchFlag.value === 1) return
changePlayItemId('')
socketStore.closeSocket()
// common.show('提示信息', '检测到您已离开,即将退出学习页面。',false, '','确认').then((res) => {
@@ -739,6 +739,7 @@ onUnload(() => {
changePlayItemId()
teacherVoiceObj?.stop?.()
teacherVoiceObj.src = ''
socketStore.closeSocket()
})
const testAnswer = computed(() => {
if (talkingList.value.length < 5) return true
+3 -1
View File
@@ -200,7 +200,9 @@
const createNewDialog = () => {
common.msg('已经是最新对话')
if(talkingList.value.length === 0){
common.msg('已经是最新对话')
}
common.redirectTo(`/pages/index/dialog`)
}
const showModelComfirm = ref(false)