This commit is contained in:
27942
2025-12-26 17:28:20 +08:00
parent fc5ce9122e
commit 3a2318bb80

View File

@@ -389,7 +389,7 @@ class Personlist(APIView):
department_dict.append({
'id': user.id,
"name": user.username, # 修改为 name与前端期望的字段名一致
"username": user.username, # 同时保留 username 字段以兼容
"department": user.username, # 同时保留 username 字段以兼容
})
return Response({'message': '展示成功',"total":total,'data':department_dict, 'code': 0}, status=status.HTTP_200_OK)