视频播放以及播放记录上传优化

This commit is contained in:
禺狨 2023-03-27 15:42:03 +08:00
parent 1bf55a4a54
commit 6c6b18b76c
4 changed files with 5 additions and 1 deletions

View File

@ -134,7 +134,7 @@ export const Header: React.FC = () => {
label: "首页", label: "首页",
}, },
{ {
key: "/recent-learn", key: "/latest-learn",
label: "最近学习", label: "最近学习",
}, },
]; ];

View File

@ -163,6 +163,7 @@ const CoursePage = () => {
record={learnHourRecord[it.id]} record={learnHourRecord[it.id]}
duration={it.duration} duration={it.duration}
progress={learnHourRecord[it.id].progress} progress={learnHourRecord[it.id].progress}
onChange={() => getDetail()}
></HourCompenent> ></HourCompenent>
)} )}
{!learnHourRecord[it.id] && ( {!learnHourRecord[it.id] && (
@ -173,6 +174,7 @@ const CoursePage = () => {
record={null} record={null}
duration={it.duration} duration={it.duration}
progress={0} progress={0}
onChange={() => getDetail()}
></HourCompenent> ></HourCompenent>
)} )}
</div> </div>

View File

View File

@ -0,0 +1,2 @@
import styles from "./index.module.scss";