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 }; });