This commit is contained in:
杨航
2025-12-04 17:05:03 +08:00
parent 1d944657d8
commit 401c6c2e42
2 changed files with 13 additions and 8 deletions
+12 -7
View File
@@ -329,7 +329,9 @@
console.log(body);
console.log(talkingList.value[talkingList.value.length - 1].isLoading);
if (talkingList.value.length > 0 && talkingList.value[talkingList.value.length - 1].isLoading) {
talkingList.value.pop();
talkingList.value = talkingList.value.filter(t => {
return !(t.type === 'question' && t.isLoading)
})
}
// seqNo.value = body.seqNo;
// touchBtnCallBack.value && touchBtnCallBack.value();
@@ -364,7 +366,10 @@
if (body.event === 'start') {
answerIsOver.value = false;
answerText.value = '';
talkingList.value.pop();
// talkingList.value.pop();
talkingList.value = talkingList.value.filter(t => {
return !(t.type === 'answer' && t.isLoading)
})
talkingList.value.push({
type: 'answer',
talkingText: answerText.value,
@@ -407,12 +412,12 @@
return;
}
if (commond === 'ASK-OVER') {
console.log(body );
console.log(body);
console.log('陪练已结束,去结果页面!');
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value
+ '&execId=' + execId.value
+ '&type=' + talkingType.value
+ '&isPreview=' + (isPreview.value ? '1' : ''))
common.navigateTo('/pages/sparring/result?isOver=1&traId=' + traId.value +
'&execId=' + execId.value +
'&type=' + talkingType.value +
'&isPreview=' + (isPreview.value ? '1' : ''))
return;
}
} else {