From e790321e6a263b3622856df5df54da4b8a94333b Mon Sep 17 00:00:00 2001 From: ditiqi Date: Sun, 23 Feb 2025 21:41:37 +0800 Subject: [PATCH] add --- .../editor/form/CourseContentForm/LectureList.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apps/web/src/components/models/course/editor/form/CourseContentForm/LectureList.tsx b/apps/web/src/components/models/course/editor/form/CourseContentForm/LectureList.tsx index 8395c94..1bbc610 100755 --- a/apps/web/src/components/models/course/editor/form/CourseContentForm/LectureList.tsx +++ b/apps/web/src/components/models/course/editor/form/CourseContentForm/LectureList.tsx @@ -65,7 +65,7 @@ export const LectureList: React.FC = ({ ); // 用 lectures 初始化 items 状态 - const [items, setItems] = useState(lectures); + const [items, setItems] = useState(lectures); // 当 lectures 变化时更新 items useEffect(() => { @@ -94,12 +94,6 @@ export const LectureList: React.FC = ({ return (
- {/* */} = ({ meta: { type: LectureType.ARTICLE, }, - }, + } as Lecture, ]); }}> 添加课时