From bafdbc3347cc5776a1ae2ae78be7dfcf35716e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 24 Mar 2023 17:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=AF=A6=E6=83=85=E5=88=9D?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/hour.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/pages/course/compenents/hour.tsx b/src/pages/course/compenents/hour.tsx index c1ce1dc..1336941 100644 --- a/src/pages/course/compenents/hour.tsx +++ b/src/pages/course/compenents/hour.tsx @@ -33,9 +33,6 @@ export const HourCompenent: React.FC = ({
{progress >= 0 && progress < 100 && ( <> -
- 上次学习到{durationFormat(Number(duration))} -
{progress === 0 && (
= ({
)} {progress !== 0 && ( -
{ - navigate(`/course/play/${id}`); - }} - > - 继续学习 -
+ <> +
+ 上次学习到{durationFormat(Number(duration))} +
+
{ + navigate(`/course/play/${id}`); + }} + > + 继续学习 +
+ )} )}