chore: 取消录音时控制台的日志
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
CaptainB 2024-10-10 10:48:13 +08:00 committed by 刘瑞斌
parent e253637ae3
commit 68a0098445

View File

@ -831,6 +831,8 @@ const mediaRecorderStatus = ref(true)
//
const startRecording = async () => {
try {
//
Recorder.CLog=function(){}
mediaRecorderStatus.value = false
handleTimeChange()
mediaRecorder.value = new Recorder({
@ -908,7 +910,6 @@ const uploadRecording = async (audioBlob: Blob) => {
const formData = new FormData()
formData.append('file', audioBlob, 'recording.mp3')
applicationApi.postSpeechToText(props.data.id as string, formData, loading).then((response) => {
console.log('上传成功:', response.data)
recorderLoading.value = false
mediaRecorder.value.close()
inputValue.value = typeof response.data === 'string' ? response.data : ''