ZhangXianQiang
2024-06-19 1a20a2c7a9e1ba9a0ffb83fb3d09ee7215d260c4
src/views/exam/index.vue
@@ -82,7 +82,7 @@
    <el-dialog v-model="dialogVisible" title="注意" width="500">
      <div class="dialog-container">
        <p>请确认是否退出当前考试</p>
        <p>当前考试试卷会自动提交,后续无法继续作答</p>
        <p>当前考试试卷会自动提交,后续将无法继续作答</p>
      </div>
      <template #footer>
        <div class="dialog-footer">
@@ -112,13 +112,12 @@
const router = useRouter();
const examStore = useExamStore();
const { currentType, currentIndex, activeQuestion, examDetail } = storeToRefs(examStore);
const { currentType, currentIndex, examDetail } = storeToRefs(examStore);
const typeComponent = {
  1: AnswerSingle,
  2: AnswerMultiple,
};
examStore.setActiveQuestion(examDetail.value[0].questionList[0]);
const dialogVisible = ref(false);
@@ -163,7 +162,7 @@
        currentIndex.value = 0;
      }
    }
    findQuestion(currentType.value, currentIndex.value);
    // findQuestion(currentType.value, currentIndex.value);
  }
};