ZhangXianQiang
2024-06-28 6a4c9ac686d0a0d3ead45e16e8a4481b7c6406f2
src/views/grade/components/answer-main/answer-single/index.vue
@@ -46,16 +46,16 @@
const activeQuestion = ref(gradeStore.getActiveQuestion);
const answerState = (item) => {
  const flag = activeQuestion.value.correct === activeQuestion.value.right;
  if (item.prefix === activeQuestion.value.correct) {
    const flag = activeQuestion.value.correct === activeQuestion.value.right;
    return {
      right: flag,
      wrong: !flag
    };
  }
  if (item.prefix === activeQuestion.value.right) {
  } else if(item.prefix === activeQuestion.value.right) {
    return {
      right: true
      right: !flag,
      wrong: flag
    };
  }
};