| | |
| | | import { ref, computed } from 'vue'; |
| | | import { storeToRefs } from 'pinia'; |
| | | import ExamInfo from '@/components/ExamInfo/index.vue'; |
| | | import { useExamStore } from '@/store/index.js'; |
| | | import { useGradeStore } from '@/store/index.js'; |
| | | const gradeStore = useGradeStore(); |
| | | |
| | | const examStore = useExamStore(); |
| | | const { currentIndex } = storeToRefs(gradeStore); |
| | | |
| | | const { currentIndex } = storeToRefs(examStore); |
| | | |
| | | const activeQuestion = ref(examStore.getActiveQuestion); |
| | | const activeQuestion = ref(gradeStore.getActiveQuestion); |
| | | |
| | | const formatAnswer = (answer) => { |
| | | return answer.split(','); |