tree组件overflow

This commit is contained in:
禺狨 2023-05-09 09:36:15 +08:00
parent 0b83fb69ff
commit 9477110a0b

View File

@ -30,10 +30,10 @@ export const TreeDepartment = (props: PropInterface) => {
setUserTotal(res.data.user_total);
if (JSON.stringify(departments) !== "{}") {
if (props.showNum) {
const new_arr: any = checkNewArr(departments, 0, departCount);
const new_arr: any[] = checkNewArr(departments, 0, departCount);
setTreeData(new_arr);
} else {
const new_arr: Option[] = checkArr(departments, 0);
const new_arr: any[] = checkArr(departments, 0);
setTreeData(new_arr);
}
} else {