|
|
@@ -217,15 +217,15 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- // 轮询获取逐句评价(在60秒内每5秒轮询一次)
|
|
|
+ // 轮询获取逐句评价(在120秒内每5秒轮询一次)
|
|
|
const pollSentenceEvaluation = (version: number) => {
|
|
|
let pollCount = 0
|
|
|
- const maxPolls = 12 // 60秒 / 5秒 = 12次
|
|
|
+ const maxPolls = 24 // 120秒 / 5秒 = 24次
|
|
|
|
|
|
sentencePollingInterval = setInterval(() => {
|
|
|
pollCount++
|
|
|
|
|
|
- // 如果已经轮询了12次(60秒),停止轮询
|
|
|
+ // 如果已经轮询了24次(120秒),停止轮询
|
|
|
if (pollCount >= maxPolls) {
|
|
|
if (sentencePollingInterval) {
|
|
|
clearInterval(sentencePollingInterval)
|
|
|
@@ -306,7 +306,7 @@
|
|
|
console.warn('⚠️ 后端返回的逐句评价数据缺少 evaluation 字段,请检查后端 AI 评价生成逻辑')
|
|
|
}
|
|
|
} else {
|
|
|
- // 如果返回空数据,开始轮询(每5秒一次,持续60秒)
|
|
|
+ // 如果返回空数据,开始轮询(每5秒一次,持续120秒)
|
|
|
data.sentenceEvaluationList = []
|
|
|
pollSentenceEvaluation(version)
|
|
|
}
|
|
|
@@ -930,4 +930,4 @@ export default {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|