| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref,computed } from 'vue'; |
| | | 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(); |
| | | |
| | | const { currentIndex } = storeToRefs(examStore); |
| | | const { currentIndex } = storeToRefs(examStore); |
| | | |
| | | const activeQuestion = ref(examStore.getActiveQuestion); |
| | | |
| | |
| | | return { |
| | | wrong: true |
| | | }; |
| | | } else if (!flag1 && flag2) { |
| | | return { |
| | | right: true |
| | | }; |
| | | } |
| | | } else { |
| | | return { |
| | | right: flag2, |
| | | wrong: flag1 |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | }; |