From 4f28f987462c7c0c784930e1a3995dbeaa2bbbbf Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期一, 01 七月 2024 14:26:48 +0800
Subject: [PATCH] fix:修改问题

---
 src/views/exam/components/answer-sheet/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/exam/components/answer-sheet/index.vue b/src/views/exam/components/answer-sheet/index.vue
index ad89f1e..2199d32 100644
--- a/src/views/exam/components/answer-sheet/index.vue
+++ b/src/views/exam/components/answer-sheet/index.vue
@@ -3,7 +3,7 @@
     <el-scrollbar>
       <el-collapse v-model="activeNames">
         <template v-for="item in examDetail">
-          <el-collapse-item :title="examType[item.questionType]" :name="item.questionType">
+          <el-collapse-item :title="item.title" :name="item.questionType">
             <div class="sheet-list grid grid-cols-5 gap-4 justify-items-center">
               <div class="sheet-item cursor-pointer flex justify-center items-center" v-for="question,index in item.questionList" @click="sheetClick(item.questionType,index)" :class="itemClass(question,item.questionType, index)">
                 {{ index + 1 }}
@@ -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
   }
 }

--
Gitblit v1.8.0