diff --git a/src/front/src/components/testing/DetailCardTest.vue b/src/front/src/components/testing/DetailCardTest.vue index ab415d289..b309cf4d6 100644 --- a/src/front/src/components/testing/DetailCardTest.vue +++ b/src/front/src/components/testing/DetailCardTest.vue @@ -21,6 +21,7 @@ :currentQuestion="currentQuestion" :totalQuestions="data.question_count" :answers="answers" + :finishTest="openFinishDialog" @change-question="changeQuestion" /> @@ -73,26 +74,6 @@ export default { console.log(data.value); }; - const questions = ref([ - { - question: 'Ваши родители знают что Вы гей?', - options: ['Да', 'Нет'], - correct: 'Да', - }, - { - question: 'Какой цвет у неба?', - options: ['Синий', 'Зеленый', 'Красный', 'Желтый'], - correct: 'Синий', - }, - { question: 'Сколько дней в неделе?', options: ['5', '6', '7', '8'], correct: '7' }, - { - question: 'Как называется столица Франции?', - options: ['Берлин', 'Париж', 'Лондон', 'Рим'], - correct: 'Париж', - }, - { question: 'Сколько ног у паука?', options: ['4', '6', '8', '10'], correct: '8' }, - ]); - const formattedTime = computed(() => { if (!data.value?.time) return '00:00'; @@ -175,7 +156,6 @@ export default { formattedTime, startTest, finishTest, - questions, answers, currentQuestion, changeQuestion, diff --git a/src/front/src/components/testing/QuestionBlock.vue b/src/front/src/components/testing/QuestionBlock.vue index 77c1f3888..b24b054f2 100644 --- a/src/front/src/components/testing/QuestionBlock.vue +++ b/src/front/src/components/testing/QuestionBlock.vue @@ -1,5 +1,5 @@ @@ -38,6 +48,7 @@ export default { question: Object, currentQuestion: Number, totalQuestions: Number, + finishTest: Function, answers: Array, }, emits: ['change-question'],