mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 20:42:50 +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,
|
||||
hasChapter: chapterType,
|
||||
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);
|
||||
setThumb(res.data.course.thumb);
|
||||
setInit(false);
|
||||
console.log(dayjs(res.data.course.published_at, "YYYY-MM-DD HH:mm:ss"));
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user