diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index af43dd41..d17f119b 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -199,6 +199,8 @@ isLoading: true }); scrollToBottomNow(); + // 设为提问中状态 + answerIsOver.value = false commonUploadVoiceFile(voicePath, '/trapractice/traPartnerChat/voiceTrans', {}) .then((_res) => { if (!!(_res.body.transContent || '').trim()) { @@ -215,6 +217,7 @@ body: askData.value }); } else { + answerIsOver.value = true talkingList.value.pop(); uni.showToast({ title: '未识别到文字', @@ -224,6 +227,7 @@ } }) .catch((err) => { + answerIsOver.value = true talkingList.value.pop(); uni.showToast({ title: '系统异常,请联系管理员', @@ -333,8 +337,6 @@ return !(t.type === 'question' && t.isLoading) }) } - // 设为提问中状态 - answerIsOver.value = false // seqNo.value = body.seqNo; // touchBtnCallBack.value && touchBtnCallBack.value(); // touchBtnCallBack.value = null;