feat: Implement a comprehensive quiz interface with start, taking, result, and review screens, including a timer and navigation.
This commit is contained in:
parent
24c37df4ef
commit
b41b59cc7c
1 changed files with 1 additions and 8 deletions
|
|
@ -166,7 +166,7 @@ const retryQuiz = () => {
|
|||
}
|
||||
|
||||
const submitQuiz = async (auto = false) => {
|
||||
if (!auto && !confirm(t('quiz.submitConfirm'))) return
|
||||
// if (!auto && !confirm(t('quiz.submitConfirm'))) return <-- Removed logic
|
||||
|
||||
if (timerInterval) clearInterval(timerInterval)
|
||||
|
||||
|
|
@ -185,13 +185,6 @@ const submitQuiz = async (auto = false) => {
|
|||
|
||||
if (res.success) {
|
||||
quizResult.value = res.data
|
||||
|
||||
// Force mark lesson complete if passed (Fix for checkmark issue)
|
||||
if (res.data.is_passed) {
|
||||
markLessonComplete(courseId, lessonId).then(() => {
|
||||
console.log('Explicitly marked lesson complete')
|
||||
})
|
||||
}
|
||||
} else {
|
||||
// Fallback error handling
|
||||
alert(res.error || 'Failed to submit quiz')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue