Explorar el Código

延长了AI评测页面的逐句批改的等待时间,以适应更长的评测过程。

Jiang Pengyu hace 6 meses
padre
commit
1540b70c49
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      src/views/AIEvaluationPage/AIEvaluationPage.vue

+ 5 - 5
src/views/AIEvaluationPage/AIEvaluationPage.vue

@@ -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>