From d9f3f27d1180ea27e8834e86974793c03a4e7b74 Mon Sep 17 00:00:00 2001 From: unknown <18119604035@163.com> Date: Wed, 2 Aug 2023 09:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E4=B8=8A=E8=AF=BE=E8=AF=BE=E4=BB=B6?= =?UTF-8?q?=E3=80=81=E8=AF=BE=E6=97=B6=E7=BC=96=E8=BE=91=E9=A1=B5=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/attachment-update.tsx | 3 +++ src/pages/course/compenents/hour-update.tsx | 7 +++++++ 2 files changed, 10 insertions(+) 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]);