ZhangXianQiang
2024-06-20 1f33c401da7a7a7b67222af7400dba66d65b6a9a
src/views/grade/components/answer-main/answer-single/index.vue
@@ -38,12 +38,12 @@
import { computed, ref } 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 { currentIndex } = storeToRefs(examStore);
const { currentIndex } = storeToRefs(gradeStore);
const activeQuestion = ref(examStore.getActiveQuestion);
const activeQuestion = ref(gradeStore.getActiveQuestion);
const answerState = (item) => {
  if (item.prefix === activeQuestion.value.correct) {