From 7a8ebd903b4195596c9d6701b944adb862876d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=A0?= <2091066548@qq.com> Date: Wed, 20 Aug 2025 22:30:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=89=93=E5=8C=85=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/examples/usage.ts | 2 +- src/views/teacher/AdminDashboard.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/examples/usage.ts b/src/api/examples/usage.ts index 172ecfc..0363f0d 100644 --- a/src/api/examples/usage.ts +++ b/src/api/examples/usage.ts @@ -127,7 +127,7 @@ export const getCourseDetailExample = async (courseId: string) => { // 报名课程示例 export const enrollCourseExample = async (courseId: number) => { try { - const response = await CourseApi.enrollCourse(courseId) + const response = await CourseApi.enrollCourse(String(courseId)) if (response.code === 200) { console.log('报名成功:', response.data) return response.data diff --git a/src/views/teacher/AdminDashboard.vue b/src/views/teacher/AdminDashboard.vue index 8554759..f413d33 100644 --- a/src/views/teacher/AdminDashboard.vue +++ b/src/views/teacher/AdminDashboard.vue @@ -58,7 +58,7 @@