| | |
| | | } |
| | | ], |
| | | "analyze": "问小朋友", |
| | | "correct": "A,B,D", |
| | | "right": "B,C", |
| | | "score": "5", |
| | | "difficult": 5, |
| | | "isRight": false |
| | | }, |
| | | { |
| | | "id": null, |
| | | "questionType": 1, |
| | | "gradeLevel": null, |
| | | "subjectId": 2, |
| | | "title": "1+1=?", |
| | | "items": [ |
| | | { |
| | | "prefix": "A", |
| | | "content": "1" |
| | | }, |
| | | { |
| | | "prefix": "B", |
| | | "content": "2" |
| | | }, |
| | | { |
| | | "prefix": "C", |
| | | "content": "3" |
| | | }, |
| | | { |
| | | "prefix": "D", |
| | | "content": "4" |
| | | } |
| | | ], |
| | | "analyze": "问小朋友", |
| | | "correct": "B,C", |
| | | "right": "B,C", |
| | | "score": "5", |
| | |
| | | </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 |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | }; |