From c28f27e7a03e9c14422ae787d412c286b6ad501c Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期三, 26 六月 2024 17:49:51 +0800 Subject: [PATCH] fix:修改时间问题 --- src/views/grade/components/answer-main/answer-multiple/index.vue | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/views/grade/components/answer-main/answer-multiple/index.vue b/src/views/grade/components/answer-main/answer-multiple/index.vue index 7cb346a..46896c9 100644 --- a/src/views/grade/components/answer-main/answer-multiple/index.vue +++ b/src/views/grade/components/answer-main/answer-multiple/index.vue @@ -16,7 +16,7 @@ <div class="analysis-container"> <div class="analysis-item" :class="analysisState"> <div class="item-label">鎮ㄧ殑绛旀</div> - <div class="item-info">{{ activeQuestion.correct }}</div> + <div class="item-info">{{ activeQuestion.correct ? activeQuestion.correct: '鏈綔绛�' }}</div> </div> <div class="analysis-item analysis-right"> @@ -36,16 +36,15 @@ </template> <script setup> -import { ref,computed } from 'vue'; +import { ref, computed } from 'vue'; import { storeToRefs } from 'pinia'; import ExamInfo from '@/components/ExamInfo/index.vue'; -import { useExamStore } from '@/store/index.js'; +import { useGradeStore } from '@/store/index.js'; +const gradeStore = useGradeStore(); -const examStore = useExamStore(); +const { currentIndex } = storeToRefs(gradeStore); -const { currentIndex } = storeToRefs(examStore); - -const activeQuestion = ref(examStore.getActiveQuestion); +const activeQuestion = ref(gradeStore.getActiveQuestion); const formatAnswer = (answer) => { return answer.split(','); @@ -74,12 +73,16 @@ return { wrong: true }; + } else if (!flag1 && flag2) { + return { + right: true + }; } } else { return { right: flag2, wrong: flag1 - } + }; } } }; -- Gitblit v1.8.0