fix: bug
This commit is contained in:
+2
-2
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user