From 16e85b5e0f1009c7fc1f761c207c8627f88c4e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Mon, 26 Jan 2026 08:29:29 +0800 Subject: [PATCH] =?UTF-8?q?JLBA202505130001=5F=E5=85=B3=E4=BA=8E=E5=90=89?= =?UTF-8?q?=E6=9E=97=E9=93=B6=E8=A1=8C=E6=96=B0=E5=BB=BAAI=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E5=9F=B9=E8=AE=AD=E7=B3=BB=E7=BB=9F=E7=9A=84=E9=9C=80?= =?UTF-8?q?=E6=B1=82=5Ffix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 ++-- src/pages/course/components/touchBtn.vue | 36 ++++++++++++++++-------- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.env.development b/.env.development index 71da8ae4..df11febe 100644 --- a/.env.development +++ b/.env.development @@ -7,7 +7,7 @@ ENV = 'development' #VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7002' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' +#VITE_APP_BASE_API_Url = 'http://25.64.32.154:9601' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' @@ -16,7 +16,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' # dev -#VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' +VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # sit @@ -47,7 +47,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7003' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' -# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.150:9601' + VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' # VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' diff --git a/src/pages/course/components/touchBtn.vue b/src/pages/course/components/touchBtn.vue index 2cb5dddc..a5d9d42e 100644 --- a/src/pages/course/components/touchBtn.vue +++ b/src/pages/course/components/touchBtn.vue @@ -60,8 +60,8 @@ @@ -151,9 +151,9 @@ adjustPosition, formatType } = toRefs(props); - - + + const isLoadingState = computed(() => props.isLoading); const showTalkingModel = ref(false); @@ -301,6 +301,15 @@ } } }); + unref(recordObjCom).onError((err) => { + isRecording.value = false + isGettingPermission.value = false + if (showTalkingModel.value) { + closeModel(); + } + common.msg(err) + // common.msg(err'语音输入错误,请重试!') + }); }; @@ -326,15 +335,16 @@ const stopRecord = () => { isStopNum.value = isStartNum.value; try { - if (unref(recordObjCom).stop) { + if (isRecording.value && unref(recordObjCom).stop) { + setTimeout(() => { + isGettingPermission.value = false + }, 1000) unref(recordObjCom).stop(); - if (!transVoiceIng.value) { - console.log('1234') - setTimeout(() => { - closeModel() - }, 300) - } + setTimeout(() => { + closeModel() + }, 300) } else { + isGettingPermission.value = false closeModel(); } } catch { @@ -618,7 +628,9 @@ onHide(() => { isGettingPermission.value = true }) - defineExpose({clearInputText}) + defineExpose({ + clearInputText + })