feat:修复

This commit is contained in:
小张 2025-09-12 17:26:58 +08:00
parent 0c638147f2
commit 59c4d9ebc5
4 changed files with 9 additions and 11 deletions

View File

@ -93,13 +93,8 @@ export const searchCoursesExample = async () => {
try { try {
const response = await CourseApi.searchCourses({ const response = await CourseApi.searchCourses({
keyword: 'Vue.js', keyword: 'Vue.js',
category: '前端开发', limit: '20',
level: 'intermediate', page: 1
price: 'paid',
rating: 4,
sortBy: 'newest',
page: 1,
pageSize: 10
}) })
if (response.code === 200) { if (response.code === 200) {

View File

@ -23,7 +23,7 @@ import type {
CourseComment, CourseComment,
Quiz, Quiz,
LearningProgress, LearningProgress,
SearchRequest,
Instructor, Instructor,
} from '../types' } from '../types'

View File

@ -415,7 +415,10 @@ const handleOfflineCourse = (course: CourseDisplayItem) => {
id: course.id!, id: course.id!,
name: course.name, name: course.name,
description: course.description, description: course.description,
status: 2 // 2= status: 2, // 2=
pause_exit: '1',
allow_speed: '1',
show_subtitle: '1'
}; };
await TeachCourseApi.editCourse(updatedData); await TeachCourseApi.editCourse(updatedData);

View File

@ -188,7 +188,7 @@ import {
import '@wangeditor/editor/dist/css/style.css' import '@wangeditor/editor/dist/css/style.css'
// @ts-ignore // @ts-ignore
import { Editor, Toolbar } from '@wangeditor/editor-for-vue' import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import TeachCourseApi from '@/api/modules/teachCourse' // import TeachCourseApi from '@/api/modules/teachCourse'
const router = useRouter() const router = useRouter()
const route = useRoute() const route = useRoute()