课程新建api优化

This commit is contained in:
禺狨
2023-03-15 17:40:11 +08:00
parent 18634b9c71
commit 7862efa0d4
4 changed files with 17 additions and 5 deletions

View File

@@ -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();