diff --git a/src/pages/sparring/tip.vue b/src/pages/sparring/tip.vue index d1008e9b..8d848c38 100644 --- a/src/pages/sparring/tip.vue +++ b/src/pages/sparring/tip.vue @@ -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({