diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index 815bb03..603a269 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -86,6 +86,9 @@ const CoursePage = () => { )}
+ {chapters.length === 0 && JSON.stringify(hours) === "{}" && ( +
暂无课时
+ )} {chapters.length === 0 && JSON.stringify(hours) !== "{}" && (
{hours[0].map((item: any) => (