mirror of
https://github.com/PlayEdu/backend
synced 2025-06-09 04:44:04 +08:00
tree组件overflow
This commit is contained in:
parent
0b83fb69ff
commit
9477110a0b
@ -30,10 +30,10 @@ export const TreeDepartment = (props: PropInterface) => {
|
|||||||
setUserTotal(res.data.user_total);
|
setUserTotal(res.data.user_total);
|
||||||
if (JSON.stringify(departments) !== "{}") {
|
if (JSON.stringify(departments) !== "{}") {
|
||||||
if (props.showNum) {
|
if (props.showNum) {
|
||||||
const new_arr: any = checkNewArr(departments, 0, departCount);
|
const new_arr: any[] = checkNewArr(departments, 0, departCount);
|
||||||
setTreeData(new_arr);
|
setTreeData(new_arr);
|
||||||
} else {
|
} else {
|
||||||
const new_arr: Option[] = checkArr(departments, 0);
|
const new_arr: any[] = checkArr(departments, 0);
|
||||||
setTreeData(new_arr);
|
setTreeData(new_arr);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user