From 451ccf31a7bcb4b1326e03eeeaba1dfbc0128a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Wed, 17 Dec 2025 09:09:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ws=E6=9C=AA=E8=BF=9E=E6=8E=A5=E5=8F=91?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E5=A4=B1=E8=B4=A5=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/sparring/tip.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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({