mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 15:29:38 +08:00
线上课新建无章节课时选择逻辑优化
This commit is contained in:
parent
7fe37a679e
commit
b85e003095
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user