ZhangXianQiang
2024-07-01 60e637aa425a76b452009d0720fce32225c4629f
src/views/exam/components/answer-sheet/index.vue
@@ -17,7 +17,7 @@
</template>
<script setup>
import { ref,watchEffect } from 'vue';
import { ref } from 'vue';
import {storeToRefs} from 'pinia';
import {useExamStore} from '@/store/index.js';
const examStore = useExamStore();
@@ -28,7 +28,7 @@
const itemClass = (question,type,index) => {
  return {
    answer: question.correct,
    answer: question.answer || (question.answerList && question.answerList.length),
    active: currentType.value === type && currentIndex.value === index
  }
}