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