src/views/exam/components/answer-main/answer-single/index.vue
@@ -1,3 +1,4 @@ <!-- 单选题 --> <template> <div class="answer-container w-full h-full"> <el-scrollbar> @@ -44,8 +45,11 @@ }; const answerState = (item) => { if(activeQuestion.value.answer === item.prefix) { item.isActive = true; } return { active: item.isActive active: item.isActive || item.prefix === activeQuestion.value.answer }; };