mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:09:27 +08:00
课程新建api优化
This commit is contained in:
@@ -98,7 +98,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
);
|
||||
}
|
||||
course
|
||||
.storeCourse(values.title, values.thumb, 1, dep_ids, category_ids)
|
||||
.storeCourse(values.title, values.thumb, 1, dep_ids, category_ids, [], [])
|
||||
.then((res: any) => {
|
||||
message.success("保存成功!");
|
||||
onCancel();
|
||||
|
||||
@@ -83,7 +83,9 @@ export const CourseCreatePage: React.FC = () => {
|
||||
values.thumb,
|
||||
values.isShow,
|
||||
dep_ids,
|
||||
category_ids
|
||||
category_ids,
|
||||
[],
|
||||
[]
|
||||
)
|
||||
.then((res: any) => {
|
||||
message.success("保存成功!");
|
||||
|
||||
@@ -156,7 +156,9 @@ export const CourseUpdatePage: React.FC = () => {
|
||||
values.thumb,
|
||||
values.isShow,
|
||||
dep_ids,
|
||||
category_ids
|
||||
category_ids,
|
||||
[],
|
||||
[]
|
||||
)
|
||||
.then((res: any) => {
|
||||
message.success("保存成功!");
|
||||
|
||||
Reference in New Issue
Block a user