去除loading的timeout

This commit is contained in:
禺狨
2023-03-09 09:59:42 +08:00
parent 753568fdfc
commit 76edaeb134
6 changed files with 18 additions and 41 deletions

View File

@@ -26,9 +26,7 @@ export const TreeDepartment = (props: PropInterface) => {
},
];
setTreeData(new_arr);
setTimeout(() => {
setLoading(false);
}, 1000);
setLoading(false);
});
}, []);