From 25867876d410ada833a29d608228d04aadda5b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Wed, 5 Jul 2023 09:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=AF=A6=E6=83=85=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/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index d555192..94abde3 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -52,7 +52,7 @@ const CoursePage = () => { setLearnRecord(res.data.learn_record); } - if (JSON.stringify(res.data.learn_hour_records) !== "{}") { + if (res.data.learn_hour_records) { setLearnHourRecord(res.data.learn_hour_records); } });