fix: bug
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user