From 16c8e5e936672dafc7d9758262ef83faa1af61af Mon Sep 17 00:00:00 2001 From: dev sp Date: Mon, 4 Dec 2023 07:56:34 +0000 Subject: [PATCH] post answers data in directus --- src/components/MCQQuestion.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MCQQuestion.vue b/src/components/MCQQuestion.vue index 035ae57..21687c9 100644 --- a/src/components/MCQQuestion.vue +++ b/src/components/MCQQuestion.vue @@ -40,6 +40,7 @@ +

Now you can submit your answer

@@ -83,8 +84,8 @@ export default { saveAns() { // if (this.saveAnswer !== null) { const selectedAnswer = { - answer: this.saveAnswer, questionId: this.qsData[this.qPoint].id, + answer: this.saveAnswer, view: this.viewStatus = 1, // Set status to 1 for "Save Answer" }; this.totalAnswer.push(selectedAnswer);