From 4a10d2c7cac924cd4eb9903644140354e6cbfb7b Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期二, 02 七月 2024 15:12:10 +0800 Subject: [PATCH] feat:文件资源 --- src/views/exam/components/answer-main/answer-multiple/index.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/exam/components/answer-main/answer-multiple/index.vue b/src/views/exam/components/answer-main/answer-multiple/index.vue index ee4c5bb..9cb4f70 100644 --- a/src/views/exam/components/answer-main/answer-multiple/index.vue +++ b/src/views/exam/components/answer-main/answer-multiple/index.vue @@ -1,3 +1,4 @@ +<!-- 澶氶�夐 --> <template> <div class="answer-container w-full h-full"> <el-scrollbar> @@ -29,15 +30,16 @@ const answerClick = (item) => { if (item) { - // resetAnswer(); item.isActive = !item.isActive; const answerList = filterAnswer(); examStore.setQuestionAnswerList(currentType.value, currentIndex.value, answerList); - } }; const answerState = (item) => { + if(Array.isArray(activeQuestion.value.answerList) && activeQuestion.value.answerList.includes(item.prefix)) { + item.isActive = true; + } return { active: item.isActive }; @@ -48,6 +50,8 @@ } + + </script> <style lang="scss" scoped> -- Gitblit v1.8.0