feat:修复
This commit is contained in:
parent
0c638147f2
commit
59c4d9ebc5
@ -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) {
|
||||
|
@ -23,7 +23,7 @@ import type {
|
||||
CourseComment,
|
||||
Quiz,
|
||||
LearningProgress,
|
||||
SearchRequest,
|
||||
|
||||
Instructor,
|
||||
} from '../types'
|
||||
|
||||
|
@ -415,9 +415,12 @@ 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);
|
||||
|
||||
// 更新本地数据
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user