From f0320a021de2ac4529a0dcb0bb62464e7a966fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=A0?= <2091066548@qq.com> Date: Tue, 2 Sep 2025 17:15:46 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=AF=B9=E6=8E=A5ai=E4=BC=B4?= =?UTF-8?q?=E5=AD=A6=E6=99=AE=E9=80=9A=E5=92=8Cai=E4=BC=B4=E5=AD=A6?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/course.ts | 12 ++++++++---- src/api/types.ts | 1 + src/views/CourseExchanged.vue | 6 ++++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/api/modules/course.ts b/src/api/modules/course.ts index c625c56..1b85a31 100644 --- a/src/api/modules/course.ts +++ b/src/api/modules/course.ts @@ -244,8 +244,10 @@ export class CourseApi { isEnrolled: false, progress: 0, createdAt: this.formatTimestamp(item.createTime), - updatedAt: this.formatTimestamp(item.updateTime) - } + updatedAt: this.formatTimestamp(item.updateTime), + // 添加AI伴学模式字段 + izAi: item.izAi + } as any return { code: 200, @@ -351,8 +353,10 @@ export class CourseApi { isEnrolled: false, progress: 0, createdAt: this.formatTimestamp(item.createTime), - updatedAt: this.formatTimestamp(item.updateTime) - } + updatedAt: this.formatTimestamp(item.updateTime), + // 添加AI伴学模式字段 + izAi: item.izAi + } as any return { code: 200, diff --git a/src/api/types.ts b/src/api/types.ts index 04dafd4..c869c2b 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -319,6 +319,7 @@ export interface BackendCourseItem { maxEnroll: number status: number question: string + izAi: number | null // AI伴学模式标识:1=AI伴学,0=普通模式,null=普通模式 createBy: string createTime: string updateBy: string diff --git a/src/views/CourseExchanged.vue b/src/views/CourseExchanged.vue index 37a87b2..4c9d789 100644 --- a/src/views/CourseExchanged.vue +++ b/src/views/CourseExchanged.vue @@ -695,7 +695,8 @@ -
+ +