From 69a5ab4851db96ed7dfe7e9df5a487616b53832e Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Mon, 3 Aug 2026 22:43:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0=E8=80=83=E8=AF=95?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/exam.ts | 9 ++++ src/components/Library/LibraryFileList.vue | 7 ++- src/components/exam/ExamDialog.vue | 6 ++- src/components/question/QuestionList.vue | 52 +++++++++++++++++----- src/stores/exam.ts | 11 +++-- src/stores/practice.ts | 2 - src/stores/question.ts | 1 + src/types/exam.ts | 9 ++++ 8 files changed, 75 insertions(+), 22 deletions(-) create mode 100644 src/apis/exam.ts diff --git a/src/apis/exam.ts b/src/apis/exam.ts new file mode 100644 index 0000000..73410ba --- /dev/null +++ b/src/apis/exam.ts @@ -0,0 +1,9 @@ +import { cloudService } from './index' +import type { IExamRecord } from '@/types/exam.ts' + +export const addExamRecordApi = (data: IExamRecord): Promise => + cloudService({ + url: '/study-api/exam/record', + method: 'post', + data + }) diff --git a/src/components/Library/LibraryFileList.vue b/src/components/Library/LibraryFileList.vue index 8ddf28d..756a4fa 100644 --- a/src/components/Library/LibraryFileList.vue +++ b/src/components/Library/LibraryFileList.vue @@ -30,7 +30,6 @@