| | |
| | | <!-- 判断题 --> |
| | | <template> |
| | | <div class="answer-container w-full h-full"> |
| | | <div class="answer-container w-full h-full flex"> |
| | | <el-scrollbar class="flex-1 mr-4"> |
| | | <ExamInfo class="mb-5" :questionIndex="currentIndex" :activeQuestion="activeQuestion"></ExamInfo> |
| | | |
| | |
| | | import { ref, computed } from 'vue'; |
| | | import { storeToRefs } from 'pinia'; |
| | | import ExamInfo from '@/components/ExamInfo/index.vue'; |
| | | import { useExamStore } from '@/store/index.js'; |
| | | const examStore = useExamStore(); |
| | | import { useGradeStore } from '@/store/index.js'; |
| | | const gradeStore = useGradeStore(); |
| | | |
| | | const { currentType, currentIndex } = storeToRefs(examStore); |
| | | const { currentType, currentIndex } = storeToRefs(gradeStore); |
| | | |
| | | const activeQuestion = ref(examStore.getActiveQuestion); |
| | | const activeQuestion = ref(gradeStore.getActiveQuestion); |
| | | |
| | | |
| | | const answerState = (item) => { |