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