线上课新建无章节课时选择逻辑优化

This commit is contained in:
禺狨 2023-03-17 13:57:51 +08:00
parent 7fe37a679e
commit b85e003095

View File

@ -18,12 +18,10 @@ export const TreeHours = (props: PropInterface) => {
const [loading, setLoading] = useState<boolean>(true);
useEffect(() => {
const hours = props.data;
if (hours.length === 0) {
return;
}
checkTree(hours);
console.log(hours);
}, [props.data]);
const checkTree = (hours: any) => {