From af4f1d49663c54585ed223e962d5cf8a0adde43e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Tue, 28 Mar 2023 10:29:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=BA=95=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/footer/index.tsx | 11 +++++++---- src/pages/course/compenents/hour.tsx | 11 ++++++++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/compenents/footer/index.tsx b/src/compenents/footer/index.tsx index 05d731e..ce088a5 100644 --- a/src/compenents/footer/index.tsx +++ b/src/compenents/footer/index.tsx @@ -1,5 +1,6 @@ import React from "react"; import { Layout } from "antd"; +import { Link } from "react-router-dom"; export const Footer: React.FC = () => { return ( @@ -12,10 +13,12 @@ export const Footer: React.FC = () => { marginTop: 80, }} > - + + + ); }; diff --git a/src/pages/course/compenents/hour.tsx b/src/pages/course/compenents/hour.tsx index 9f1ddbf..34a50ce 100644 --- a/src/pages/course/compenents/hour.tsx +++ b/src/pages/course/compenents/hour.tsx @@ -74,7 +74,16 @@ export const HourCompenent: React.FC = ({ )} > )} - {progress >= 100 && 已学完} + {progress >= 100 && ( + { + setVisible(true); + }} + > + 已学完 + + )} );