线上课添加、编辑增加简介字段

This commit is contained in:
禺狨
2023-03-21 15:07:48 +08:00
parent 092cf2f69e
commit 9fc6e79b3d
3 changed files with 10 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
category_ids: [],
type: "open",
isRequired: 1,
desc: "",
short_desc: "",
hasChapter: 0,
});
setThumb(defaultThumb1);
@@ -129,6 +129,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
.storeCourse(
values.title,
values.thumb,
values.short_desc,
1,
values.isRequired,
dep_ids,
@@ -496,7 +497,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
</div>
</div>
</Form.Item>
<Form.Item label="课程简介" name="desc">
<Form.Item label="课程简介" name="short_desc">
<Input.TextArea
style={{ width: 424, height: 80 }}
allowClear