From e093df6f25e8c2c3b536516eefe2a0ce7c190080 Mon Sep 17 00:00:00 2001 From: yanghang Date: Tue, 22 Jul 2025 16:31:59 +0800 Subject: [PATCH] fix: bug --- src/pages/course/components/touchBtn.vue | 12 +++++++----- src/pages/index/dialog.vue | 6 +++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 46cdd72a..4d4f6c50 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -106,11 +106,13 @@ const initRecord = () => { showTalkingModel.value = false if(!isOut.value){ if(startFlag.value !== 2){ - common.msg('说话时间太短,没有听清!') showTalkingModel.value = false - return + nextTick(() => { + common.msg('说话时间太短,没有听清!') + }) + }else{ + emit('uploadVoice', audioPath.value) } - emit('uploadVoice', audioPath.value) } }) unref(recordObjCom).onStart(() => { @@ -133,8 +135,8 @@ const startRecord = () => { const stopRecord = () => { if(unref(recordObjCom).stop){ try{ - unref(recordObjCom)?.stop() - }catch{ + unref(recordObjCom).stop() + }finally{ showTalkingModel.value = false } }else{ diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue index 72090774..db22ddd1 100644 --- a/src/pages/index/dialog.vue +++ b/src/pages/index/dialog.vue @@ -522,8 +522,8 @@ position: absolute; overflow: hidden; left: 0; - top: 1%; - height: 102%; + top: 0%; + height: 100%; width: 100%; padding: 0; box-sizing: border-box; @@ -716,7 +716,7 @@ } .talking-list { - height: calc(100% - 834rpx); + height: calc(100% - 832rpx); padding: 12rpx 24rpx; box-sizing: border-box;