From 01b5be0e187236a88fdc4d5220061252a76c7a77 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Wed, 4 Jun 2025 16:40:17 +0300 Subject: [PATCH] =?UTF-8?q?fix=20[P-256]:=20=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/testing/BodyDetailTesting.vue | 4 ++-- src/front/src/components/testing/DetailCardTest.vue | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/front/src/components/testing/BodyDetailTesting.vue b/src/front/src/components/testing/BodyDetailTesting.vue index 74e3e7149..9020fc7fa 100644 --- a/src/front/src/components/testing/BodyDetailTesting.vue +++ b/src/front/src/components/testing/BodyDetailTesting.vue @@ -33,7 +33,7 @@ -
+
Количество попыток: {{ remainingAttempts !== undefined ? remainingAttempts : data?.attemps_number }} @@ -50,7 +50,7 @@ { await getTestById(testId); - // Проверяем, есть ли оставшиеся попытки - if (remainingAttempts.value !== undefined && remainingAttempts.value <= 0) { + // Проверяем попытки только для режима экзамена + const isExamMode = route.query.mode === 'exam'; + if (isExamMode && remainingAttempts.value !== undefined && remainingAttempts.value <= 0) { console.log('Нет оставшихся попыток для прохождения теста'); return; // Прерываем запуск теста если попыток не осталось }