diff --git a/apps/web/src/components/models/course/detail/CourseSyllabus/SectionItem.tsx b/apps/web/src/components/models/course/detail/CourseSyllabus/SectionItem.tsx index 95c61db..d2a4fe6 100755 --- a/apps/web/src/components/models/course/detail/CourseSyllabus/SectionItem.tsx +++ b/apps/web/src/components/models/course/detail/CourseSyllabus/SectionItem.tsx @@ -7,6 +7,7 @@ import { LectureItem } from "./LectureItem"; // components/CourseSyllabus/SectionItem.tsx interface SectionItemProps { section: SectionDto; + index?: number; isExpanded: boolean; onToggle: (sectionId: string) => void; onLectureClick: (lectureId: string) => void; @@ -14,7 +15,7 @@ interface SectionItemProps { } export const SectionItem = React.forwardRef( - ({ section, isExpanded, onToggle, onLectureClick }, ref) => ( + ({ section, index, isExpanded, onToggle, onLectureClick }, ref) => ( ( onClick={() => onToggle(section.id)}>
- 第{Math.floor(section.order)}章 + 第{index}章 -
+

{section.title}