课程详情页无课时和无章节情况显示暂无课时

This commit is contained in:
禺狨 2023-03-27 14:40:20 +08:00
parent 42be719f00
commit 2ba923d89d

View File

@ -86,6 +86,9 @@ const CoursePage = () => {
)}
</div>
<div className={styles["chapters-hours-cont"]}>
{chapters.length === 0 && JSON.stringify(hours) === "{}" && (
<div></div>
)}
{chapters.length === 0 && JSON.stringify(hours) !== "{}" && (
<div className={styles["hours-list-box"]}>
{hours[0].map((item: any) => (