This commit is contained in:
weiz 2024-02-01 14:53:13 +08:00
parent b3e30600a8
commit d0f8f90862

@ -110,7 +110,7 @@ class DeptLogic extends BaseLogic
$data['org_name'] = $org->isEmpty() ? '' : $org['name'];
$data['status_text'] = $data->status_text;
$admin = Admin::field('name')->where('id',$data['leader'])->findOrEmpty();
$data['leader'] = $admin['name'];
$data['leader_name'] = $admin['name'];
return $data->toArray();
}