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 @@