From 3d29dd89631f047129a7a16b534f9be9a888149d Mon Sep 17 00:00:00 2001 From: unknown <18119604035@163.com> Date: Wed, 6 Sep 2023 10:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E7=BA=BF=E4=B8=8A=E8=AF=BE?= =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E6=97=B6=E9=97=B4=E6=B8=B2=E6=9F=93=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/update.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/course/compenents/update.tsx b/src/pages/course/compenents/update.tsx index 485d47c..af05403 100644 --- a/src/pages/course/compenents/update.tsx +++ b/src/pages/course/compenents/update.tsx @@ -97,12 +97,13 @@ export const CourseUpdate: React.FC = ({ 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")); }); }; @@ -411,7 +412,7 @@ export const CourseUpdate: React.FC = ({