mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 09:04:12 +08:00
编辑线上课上架时间渲染优化
This commit is contained in:
parent
39871bd23f
commit
3d29dd8963
@ -97,12 +97,13 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
|||||||
short_desc: res.data.course.short_desc,
|
short_desc: res.data.course.short_desc,
|
||||||
hasChapter: chapterType,
|
hasChapter: chapterType,
|
||||||
published_at: res.data.course.published_at
|
published_at: res.data.course.published_at
|
||||||
? dayjs(res.data.course.published_at, "YYYY-MM-DD HH:mm:ss")
|
? dayjs(res.data.course.published_at)
|
||||||
: "",
|
: "",
|
||||||
});
|
});
|
||||||
setType(type);
|
setType(type);
|
||||||
setThumb(res.data.course.thumb);
|
setThumb(res.data.course.thumb);
|
||||||
setInit(false);
|
setInit(false);
|
||||||
|
console.log(dayjs(res.data.course.published_at, "YYYY-MM-DD HH:mm:ss"));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -411,7 +412,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
|||||||
<Space align="baseline" style={{ height: 32 }}>
|
<Space align="baseline" style={{ height: 32 }}>
|
||||||
<Form.Item name="published_at">
|
<Form.Item name="published_at">
|
||||||
<DatePicker
|
<DatePicker
|
||||||
disabledDate={disabledDate}
|
disabledDate={disabledDate}
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
style={{ width: 240 }}
|
style={{ width: 240 }}
|
||||||
showTime
|
showTime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user