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 {
const response = await CourseApi.searchCourses({
keyword: 'Vue.js',
category: '前端开发',
level: 'intermediate',
price: 'paid',
rating: 4,
sortBy: 'newest',
page: 1,
pageSize: 10
limit: '20',
page: 1
})
if (response.code === 200) {

View File

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

View File

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

View File

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