课程详情进度条显示优化

This commit is contained in:
unknown 2023-08-08 16:09:48 +08:00
parent 931b9ee677
commit 470c0971c3

View File

@ -161,8 +161,8 @@ const CoursePage = () => {
</div>
</div>
</div>
{learnRecord &&
JSON.stringify(learnRecord) === "{}" &&
{(!learnRecord ||
(learnRecord && JSON.stringify(learnRecord) === "{}")) &&
JSON.stringify(learnHourRecord) === "{}" && (
<Progress
type="circle"
@ -174,8 +174,8 @@ const CoursePage = () => {
format={(percent) => `${percent}%`}
/>
)}
{learnRecord &&
JSON.stringify(learnRecord) === "{}" &&
{(!learnRecord ||
(learnRecord && JSON.stringify(learnRecord) === "{}")) &&
JSON.stringify(learnHourRecord) !== "{}" && (
<Progress
type="circle"