diff --git a/.env.development.yh b/.env.development.yh index 95d4857d..193ce295 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -4,8 +4,8 @@ ENV = 'development.yh' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' -# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' -VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' +VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' +# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604' # VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603' diff --git a/src/pages/sparring/components/touchBtn.vue b/src/pages/sparring/components/touchBtn.vue index e77f536d..ffb38177 100644 --- a/src/pages/sparring/components/touchBtn.vue +++ b/src/pages/sparring/components/touchBtn.vue @@ -153,7 +153,9 @@ } else { console.log(18) closeModel(); - emit('uploadVoice', audioPath.value, recordTime.value); + let _time = Math.ceil(recordTime.value) + emit('uploadVoice', audioPath.value, _time); + recordTime.value = 0 } } else { console.log(19) @@ -189,11 +191,11 @@ }; const setRecordTime = () => { setTimeout(() => { - recordTime.value += 1 + recordTime.value += 0.2 if (isRecording.value) { setRecordTime() } - }, 1000) + }, 200) } const isRecording = ref(false) const recordTime = ref(0)