修改语音掉线

This commit is contained in:
田岩
2025-09-17 22:30:31 +08:00
parent 1f27e0ebf5
commit 0d708632ea
6 changed files with 44 additions and 23 deletions
+5 -2
View File
@@ -306,6 +306,7 @@
const topic = topicList[questionNumber.value]
touchBtnRef.value?.clearinputText(); // 清除发送框数据
if (type === 'voice') {
if(topic.es_status == '00') return;
topic.es_status = '00'; // 00转圈
const voicePath = submitObj;
commonUploadVoiceFile(voicePath, '/traask/traAskchat/voiceTrans', {})
@@ -327,9 +328,11 @@
}
}
})
.catch((err) => {
.catch((error) => {
topic.es_status = ''; // 取消转圈
common.msg('系统异常,请联系管理员');
if (error === 'Other') {
common.msg('系统异常,请联系管理员');
}
});
} else if (type === 'text') {
topic.es_status = '01';