diff --git a/src/front/src/components/testing/BodyDetailTesting.vue b/src/front/src/components/testing/BodyDetailTesting.vue
index 90e378b4f..38fd63104 100644
--- a/src/front/src/components/testing/BodyDetailTesting.vue
+++ b/src/front/src/components/testing/BodyDetailTesting.vue
@@ -16,9 +16,13 @@
- Попытка 1 из {{ data?.attemps_number }}
-
- Начать
+ Попытка 1 из {{ data?.attemps_number }}
+
+ {{ isExamMode ? 'Начать' : 'Тренироваться' }}
@@ -28,10 +32,21 @@
diff --git a/src/front/src/components/testing/QuestionBlock.vue b/src/front/src/components/testing/QuestionBlock.vue
index a131cbfef..2682c1168 100644
--- a/src/front/src/components/testing/QuestionBlock.vue
+++ b/src/front/src/components/testing/QuestionBlock.vue
@@ -96,10 +96,10 @@ export default {
answers: Array,
},
setup(props) {
- // Определяем, является ли вопрос с множественным выбором
- const isMultipleChoice = computed(() => props.question.settings?.multiply === 'true');
+ const isMultipleChoice = computed(() => {
+ return props.question.answers.filter(answer => answer.right_wrong).length > 1;
+ });
- // Следим за изменением текущего вопроса и создаем пустой массив, если множественный выбор
watch(
() => props.currentQuestion,
(newVal) => {
@@ -107,7 +107,7 @@ export default {
props.answers[newVal] = [];
}
},
- { immediate: true }, // Устанавливаем сразу при инициализации
+ { immediate: true },
);
return {