我的页面优化

This commit is contained in:
禺狨
2023-07-04 16:56:29 +08:00
parent fe7b20ff23
commit 1eaf8a7218
8 changed files with 25 additions and 20 deletions

View File

@@ -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 {