mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 11:19:45 +08:00
线上课新建无章节课时选择逻辑优化
This commit is contained in:
@@ -89,7 +89,12 @@ export const UploadVideoSub = (props: PropsInterface) => {
|
||||
};
|
||||
//重置选中的key
|
||||
useEffect(() => {
|
||||
setCheckedList(props.defaultCheckedList);
|
||||
const arr = [...props.defaultCheckedList];
|
||||
setCheckedList(arr);
|
||||
if (arr.length === 0) {
|
||||
setIndeterminate(false);
|
||||
setCheckAll(false);
|
||||
}
|
||||
}, [props.defaultCheckedList]);
|
||||
|
||||
// 加载列表
|
||||
|
||||
Reference in New Issue
Block a user