From c090cd7b022216cc5c84ccbe7cd66d9f6ff5aaa1 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 31 十月 2024 20:03:22 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/store/modules/grade.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/modules/grade.js b/src/store/modules/grade.js index 737f735..9096658 100644 --- a/src/store/modules/grade.js +++ b/src/store/modules/grade.js @@ -19,6 +19,7 @@ const currentIndex = ref(0); const getActiveQuestion = computed(() => { + console.log("sb", currentType.value) const temp = examDetail.value.find(item => item.questionType === currentType.value); if (temp) { return temp.questionList[currentIndex.value]; @@ -32,9 +33,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