fix; bug

This commit is contained in:
yanghang
2025-07-16 11:07:50 +08:00
parent 0691d2501c
commit 0e7b323296
2 changed files with 11 additions and 3 deletions
+1
View File
@@ -188,6 +188,7 @@ const showOverlayTalking = (obj) => {
hideOverlayTalking()
},59 * 1010)
}else{
showTalkingModel.value = false
uni.showToast({
title: '暂无问题需要回答!',
icon: "none",
+10 -3
View File
@@ -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)
}
})