ZhangXianQiang
2024-06-28 96a3cc03d4a01366135fad937292647c413d26d0
src/views/exam/components/answer-main/answer-single/index.vue
@@ -35,7 +35,11 @@
      item.isActive = true;
    }
    const answerList = filterAnswer();
    examStore.setQuestionAnswer(currentType.value, currentIndex.value, answerList.join(','));
    let temp = '';
    if(answerList) {
      temp = answerList.prefix;
    }
    examStore.setQuestionAnswer(currentType.value, currentIndex.value, temp);
  }
};
@@ -50,7 +54,7 @@
};
const filterAnswer = () => {
  return activeQuestion.value.questionItemList.filter(item => item.isActive);
  return activeQuestion.value.questionItemList.find(item => item.isActive);
}