This commit is contained in:
杨航
2025-12-12 13:13:24 +08:00
parent 3b463aad68
commit c5645ce997
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -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'
+5 -3
View File
@@ -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)