登录路由守卫组件一级学习进度整数化

This commit is contained in:
禺狨
2023-05-08 10:57:03 +08:00
parent 6c3b29e919
commit fc98702deb
3 changed files with 35 additions and 17 deletions

View File

@@ -87,7 +87,7 @@ const CourseUserPage = () => {
dataIndex: "progress",
render: (progress: number) => (
<span className={progress >= 10000 ? "c-green" : "c-red"}>
{progress / 100}%
{Math.floor(progress / 100)}%
</span>
),
},