From 56bc0990597bf3d9667b97b98bcfbb9092ad9df6 Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期一, 15 七月 2024 16:46:35 +0800
Subject: [PATCH] 教学资源页面开发,分页,音频,类型图,下载,个人中心资料修改,密码修改,校验

---
 src/store/modules/exam.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/store/modules/exam.js b/src/store/modules/exam.js
index 854eb4b..82a9c9c 100644
--- a/src/store/modules/exam.js
+++ b/src/store/modules/exam.js
@@ -3,7 +3,7 @@
 export const useExamStore = defineStore('exam', () => {
   const examInfo = ref(null);
   const examDetail = ref([]);
-  
+
   const examType = ref({
     1: '鍗曢�夐',
     2: '澶氶�夐',
@@ -69,10 +69,10 @@
     answerProgress.value = progress;
   };
 
-  const initExam = () => {
+  const initExam = (questionType) => {
     answerProgress.value = 0;
     currentIndex.value = 0;
-    currentType.value = 1;
+    currentType.value = questionType;
   }
 
 

--
Gitblit v1.8.0