fix: ws未连接发语音失败处理

This commit is contained in:
杨航
2025-12-17 09:09:06 +08:00
parent 6cd15a6716
commit 451ccf31a7
+11 -2
View File
@@ -199,6 +199,15 @@
};
const uploadRecordNow = (voicePath, voiceTime) => {
console.log(voicePath, voiceTime)
if(!execId.value){
common.show('提示', '网络连接失败,请重新加载', false).then((res) => {
if (res) {
common.redirectTo('/pages/sparring/tip?traId=' + traId.value + '&chaId=' + chaId.value +
'&type=' + talkingType.value + '&isPreview=' + (isPreview.value ? '1' : ''))
}
});
return
}
//#ifndef APP-PLUS
// h5 假数据
// #endif
@@ -217,10 +226,10 @@
askData.value = {
execId: execId.value,
intrctWay: '02', //01-文本;02-语音;03-图片
intrctContent: _res.body.transContent,
intrctContent: _res.body.transContent,
fileId: _res.body.fileId,
ossFileAddr: _res.body.ossFileAddr,
talkingVoice: voicePath,
talkingVoice: voicePath,
voiceTime: voiceTime
};
sendMessage({