From 3a719d83620761d714fac9613d15ad02fd258fe5 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期一, 01 七月 2024 13:55:36 +0800
Subject: [PATCH] fix:修改填空题问题
---
src/views/exam/components/answer-sheet/index.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/exam/components/answer-sheet/index.vue b/src/views/exam/components/answer-sheet/index.vue
index ad89f1e..3ed9e44 100644
--- a/src/views/exam/components/answer-sheet/index.vue
+++ b/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
}
}
--
Gitblit v1.8.0