From ca5b635736db32c61ee6e2ff319cff54c824a98d Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期一, 01 七月 2024 11:12:23 +0800 Subject: [PATCH] fix:认证问题 --- src/store/modules/exam.js | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/store/modules/exam.js b/src/store/modules/exam.js index daa8174..37eda61 100644 --- a/src/store/modules/exam.js +++ b/src/store/modules/exam.js @@ -43,7 +43,6 @@ }; }); - const setExamInfo = (info) => { examInfo.value = info; }; @@ -58,6 +57,13 @@ temp.questionList[index].answer = answer; } }; + + const setQuestionAnswerList = (type, index, answer) => { + const temp = examDetail.value.find(item => item.questionType === type); + if (temp) { + temp.questionList[index].answerList = answer; + } + } const setProgress = (progress) => { answerProgress.value = progress; @@ -87,6 +93,7 @@ setExamInfo, setExamDetail, setQuestionAnswer, + setQuestionAnswerList, setProgress }; }); -- Gitblit v1.8.0