mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 07:04:03 +08:00
线上课课件、课时编辑页刷新数据
This commit is contained in:
parent
54b55d8424
commit
d9f3f27d11
@ -28,6 +28,9 @@ export const CourseAttachmentUpdate: React.FC<PropInterface> = ({
|
||||
if (id === 0) {
|
||||
return;
|
||||
}
|
||||
setAttachmentVisible(false);
|
||||
setAttachmentData([]);
|
||||
setAttachments([]);
|
||||
getDetail();
|
||||
}, [id, open]);
|
||||
|
||||
|
@ -32,6 +32,13 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
if (id === 0) {
|
||||
return;
|
||||
}
|
||||
setVideoVisible(false);
|
||||
setChapters([]);
|
||||
setHours([]);
|
||||
setChapterHours([]);
|
||||
setTreeData([]);
|
||||
setAddvideoCurrent(0);
|
||||
setChapterType(0);
|
||||
getDetail();
|
||||
}, [id, open]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user