refactor [P-36 УМТ]: страница конкретного теста
This commit is contained in:
1 parent
7c24a8af7f
commit
a8878b4e42
2 files changed
+14
-23
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user