fix: ws未连接发语音失败处理
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user