From 354bd23fc9d3db83ab6d26d2cdf7466e060bad2d Mon Sep 17 00:00:00 2001 From: xxx Date: Thu, 3 Aug 2023 09:07:44 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E8=AF=BE=E7=A8=8B=E8=AF=BE=E4=BB=B6?= =?UTF-8?q?=E7=BB=84=E4=BB=B7=E7=9A=84=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../course/compenents/attachment-update.tsx | 126 +++++++++--------- 1 file changed, 64 insertions(+), 62 deletions(-) diff --git a/src/pages/course/compenents/attachment-update.tsx b/src/pages/course/compenents/attachment-update.tsx index acb2cb5..fabdfdd 100644 --- a/src/pages/course/compenents/attachment-update.tsx +++ b/src/pages/course/compenents/attachment-update.tsx @@ -152,70 +152,72 @@ export const CourseAttachmentUpdate: React.FC = ({ return ( <> - -
-

1.线上课课件调整及时生效,操作不可逆,请谨慎操作。

-
-
- { - setAttachmentVisible(false); - }} - onSelected={(arr: any, videos: any) => { - selectAttachmentData(arr, videos); - }} - > -
-
- -
- + {open ? ( + +
+

1.线上课课件调整及时生效,操作不可逆,请谨慎操作。

+
+
+ { + setAttachmentVisible(false); + }} + onSelected={(arr: any, videos: any) => { + selectAttachmentData(arr, videos); + }} + > + +
+ +
+ +
+
+
+ {attachmentData.length === 0 && ( + + 请点击上方按钮添加课件 + + )} + {attachmentData.length > 0 && ( + { + delAttachments(id); + }} + onUpdate={(arr: any[]) => { + transAttachments(arr); + }} + /> + )}
- -
- {attachmentData.length === 0 && ( - - 请点击上方按钮添加课件 - - )} - {attachmentData.length > 0 && ( - { - delAttachments(id); - }} - onUpdate={(arr: any[]) => { - transAttachments(arr); - }} - /> - )}
-
- -
-
+ +
+ + ) : null} ); };