mirror of
https://github.com/PlayEdu/backend
synced 2025-07-20 18:21:49 +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);
|
const [loading, setLoading] = useState<boolean>(true);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const hours = props.data;
|
const hours = props.data;
|
||||||
|
|
||||||
if (hours.length === 0) {
|
if (hours.length === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
checkTree(hours);
|
checkTree(hours);
|
||||||
console.log(hours);
|
|
||||||
}, [props.data]);
|
}, [props.data]);
|
||||||
|
|
||||||
const checkTree = (hours: any) => {
|
const checkTree = (hours: any) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user