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