From 5165ee09de8555e12fb44c458a3d04e41f58e28f Mon Sep 17 00:00:00 2001
From: luohairen <3399054449@qq.com>
Date: 星期二, 12 十一月 2024 15:18:43 +0800
Subject: [PATCH] 完成错题详情查看

---
 src/store/modules/grade.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/grade.js b/src/store/modules/grade.js
index 737f735..3fd06cd 100644
--- a/src/store/modules/grade.js
+++ b/src/store/modules/grade.js
@@ -19,7 +19,9 @@
   const currentIndex = ref(0);
 
   const getActiveQuestion = computed(() => {
+    // console.log("sb", currentType.value)
     const temp = examDetail.value.find(item => item.questionType === currentType.value);
+    // console.log(temp, "dssss")
     if (temp) {
       return temp.questionList[currentIndex.value];
     }
@@ -32,9 +34,9 @@
   const setExamDetail = (detail) => {
     examDetail.value = detail;
   };
-  const initExam = () => {
+  const initExam = (questionType) => {
     currentIndex.value = 0;
-    currentType.value = 1;
+    currentType.value = questionType;
   }
   return {
     examInfo,

--
Gitblit v1.8.0