tangjie 2026-07-07 17:08:17 +08:00
parent f279702782
commit 5ff8d437b1
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function DepartmentPositionPage(props) {
}));
const tree = normalizeTree(res?.data || []);
setTreeData(tree);
if (!selectedDept && tree.length) {
if ( tree.length) {
setSelectedDept(toSelectedDept(tree[0]));
}
}