mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 06:19:51 +08:00
线上课新建无章节课时选择逻辑优化
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user