瀏覽代碼

临时补救题目数量太多的问题

zhangyujun 3 年之前
父節點
當前提交
73a566fe3c
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/hooks/examTest.ts

+ 5 - 5
src/hooks/examTest.ts

@@ -650,6 +650,11 @@ export function useExamTest() {
                 interfaceErrVisible.value = true
                 return
             }
+            //多余100道题目的切割
+            if(res.data.rows.length>100){
+                res.data.rows.splice(100)
+
+            }
             list.value = res.data.rows;
         }).catch(err=>{
             interfaceErrVisible.value = true
@@ -673,11 +678,6 @@ export function useExamTest() {
         wrongQuestion,
         wrongQuestionIndex,
         correctAnswerVisible,
-
-
-
-
-
     }
 }