diff --git a/src/pages/course/compenents/attachment-update.tsx b/src/pages/course/compenents/attachment-update.tsx index 233d5fe..acb2cb5 100644 --- a/src/pages/course/compenents/attachment-update.tsx +++ b/src/pages/course/compenents/attachment-update.tsx @@ -28,6 +28,9 @@ export const CourseAttachmentUpdate: React.FC = ({ if (id === 0) { return; } + setAttachmentVisible(false); + setAttachmentData([]); + setAttachments([]); getDetail(); }, [id, open]); diff --git a/src/pages/course/compenents/hour-update.tsx b/src/pages/course/compenents/hour-update.tsx index d4b8b9f..5a077d8 100644 --- a/src/pages/course/compenents/hour-update.tsx +++ b/src/pages/course/compenents/hour-update.tsx @@ -32,6 +32,13 @@ export const CourseHourUpdate: React.FC = ({ if (id === 0) { return; } + setVideoVisible(false); + setChapters([]); + setHours([]); + setChapterHours([]); + setTreeData([]); + setAddvideoCurrent(0); + setChapterType(0); getDetail(); }, [id, open]);