From c6f64de4cccfa6e604675df1936a71c33bb7938f Mon Sep 17 00:00:00 2001 From: yuliang_guo Date: Wed, 4 Feb 2026 15:31:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(mistakes):=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E9=A2=98=E6=8E=8C=E6=8F=A1=E7=8A=B6=E6=80=81=E4=B8=8D=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- backend/app/services/exam_report_service.py | 2 ++ frontend/src/views/analysis/mistakes.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/services/exam_report_service.py b/backend/app/services/exam_report_service.py index 2f7338d..6d7ad01 100644 --- a/backend/app/services/exam_report_service.py +++ b/backend/app/services/exam_report_service.py @@ -309,6 +309,7 @@ class MistakeService: ExamMistake.question_type, ExamMistake.knowledge_point_id, KnowledgePoint.name.label("knowledge_point_name"), + ExamMistake.mastery_status, ExamMistake.created_at ).select_from(ExamMistake).join( Exam, ExamMistake.exam_id == Exam.id @@ -339,6 +340,7 @@ class MistakeService: "question_type": row.question_type, "knowledge_point_id": row.knowledge_point_id, "knowledge_point_name": row.knowledge_point_name, + "mastery_status": row.mastery_status, "created_at": row.created_at }) diff --git a/frontend/src/views/analysis/mistakes.vue b/frontend/src/views/analysis/mistakes.vue index a428a09..1a9d3bf 100644 --- a/frontend/src/views/analysis/mistakes.vue +++ b/frontend/src/views/analysis/mistakes.vue @@ -583,7 +583,7 @@ const loadMistakes = async () => { id: item.id, type: item.question_type || 'single', difficulty: 'medium', // 暂无此字段 - masteryStatus: 'unmastered', // 暂无此字段 + masteryStatus: item.mastery_status || 'unmastered', title: item.question_content, yourAnswer: item.user_answer, correctAnswer: item.correct_answer,