xiangpei
2024-10-31 b0edc0c7a4cb8a0063a56b436a63931904f179c3
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,