fix; bug
This commit is contained in:
@@ -188,6 +188,7 @@ const showOverlayTalking = (obj) => {
|
||||
hideOverlayTalking()
|
||||
},59 * 1010)
|
||||
}else{
|
||||
showTalkingModel.value = false
|
||||
uni.showToast({
|
||||
title: '暂无问题需要回答!',
|
||||
icon: "none",
|
||||
|
||||
@@ -823,11 +823,11 @@ const finishQuestionNow = (data) => {
|
||||
}
|
||||
talkingList.value.push(lastTalkingInfo.value)
|
||||
scrollToBottomNow(0)
|
||||
getQuestionEvalateRequest(_id,data)
|
||||
getQuestionEvalateRequest(_id, data, 1)
|
||||
})
|
||||
}
|
||||
// 查询问题回答评分
|
||||
const getQuestionEvalateRequest = (id, data) => {
|
||||
const getQuestionEvalateRequest = (id, data, num) => {
|
||||
if(loadingQstLogId.value){
|
||||
textChartApi({
|
||||
processType: 'ANSER-RESULT',
|
||||
@@ -858,8 +858,15 @@ const getQuestionEvalateRequest = (id, data) => {
|
||||
})
|
||||
scrollToBottomNow()
|
||||
}else{
|
||||
// 1分钟之后取消获取报错
|
||||
if(num === 30){
|
||||
common.msg('获取评分数据失败,请重新提交获取!')
|
||||
talkingList.value.pop()//删除loading会话
|
||||
talkingList.value.pop()//删除完成会话
|
||||
return
|
||||
}
|
||||
setTimeout(()=>{
|
||||
getQuestionEvalateRequest(id, data)
|
||||
getQuestionEvalateRequest(id, data, num+1)
|
||||
}, 2 * 1000)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user