diff --git a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx index f6f4913..1a6a7b8 100755 --- a/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx +++ b/apps/web/src/components/models/course/detail/CourseDetailDisplayArea.tsx @@ -17,7 +17,7 @@ import { Skeleton } from "antd"; export const CourseDetailDisplayArea: React.FC = () => { // 创建滚动动画效果 - const { course, isLoading, lecture, lectureIsLoading } = + const { course, isLoading, lecture, lectureIsLoading, selectedLectureId } = useContext(CourseDetailContext); const { scrollY } = useScroll(); const videoOpacity = useTransform(scrollY, [0, 200], [1, 0.8]); @@ -27,6 +27,15 @@ export const CourseDetailDisplayArea: React.FC = () => { {lectureIsLoading && ( )} + {!selectedLectureId && ( + <> +
+
+ {"123"} +
+
+ + )} {!lectureIsLoading && lecture?.meta?.type === LectureType.VIDEO && (
{
-
{" "} +
)} {!lectureIsLoading &&