ZhangXianQiang
2024-07-04 d37dc9cb6a611ac03d70b65f6e91e85824ede289
src/views/grade/components/answer-main/answer-determine/index.vue
@@ -1,6 +1,6 @@
<!-- 判断题 -->
<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>
@@ -38,12 +38,12 @@
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) => {