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 + })