From 6a4c9ac686d0a0d3ead45e16e8a4481b7c6406f2 Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期五, 28 六月 2024 11:02:15 +0800 Subject: [PATCH] fix:对接提交试卷 --- src/views/exam/components/answer-main/answer-multiple/index.vue | 4 ++-- 1 files changed, 2 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 0cedd21..ee4c5bb 100644 --- a/src/views/exam/components/answer-main/answer-multiple/index.vue +++ b/src/views/exam/components/answer-main/answer-multiple/index.vue @@ -32,7 +32,7 @@ // resetAnswer(); item.isActive = !item.isActive; const answerList = filterAnswer(); - examStore.setQuestionAnswer(currentType.value, currentIndex.value, answerList.join(',')); + examStore.setQuestionAnswerList(currentType.value, currentIndex.value, answerList); } }; @@ -44,7 +44,7 @@ }; const filterAnswer = () => { - return activeQuestion.value.questionItemList.filter(item => item.isActive); + return activeQuestion.value.questionItemList.filter(item => item.isActive).map(item => item.prefix); } -- Gitblit v1.8.0