mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-27 11:39:35 +08:00
我的页面优化
This commit is contained in:
@@ -65,7 +65,7 @@ const CoursePage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (learnRecord?.progress) {
|
||||
setUserCourseProgress(learnRecord.progress / 100);
|
||||
setUserCourseProgress(Math.floor(learnRecord.progress / 100));
|
||||
} else if (learnHourRecord) {
|
||||
setUserCourseProgress(1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user