diff --git a/src/bk-user/bkuser/apis/web/personal_center/views.py b/src/bk-user/bkuser/apis/web/personal_center/views.py index f3954b697..8f482903f 100644 --- a/src/bk-user/bkuser/apis/web/personal_center/views.py +++ b/src/bk-user/bkuser/apis/web/personal_center/views.py @@ -218,6 +218,7 @@ def put(self, request, *args, **kwargs): operation=OperationEnum.MODIFY_USER_PHONE, object_type=ObjectTypeEnum.USER, object_id=tenant_user.id, + # 记录 name 方便前端展示 extras={"data_before": data_before, "name": tenant_user.data_source_user.username}, ) @@ -332,6 +333,7 @@ def put(self, request, *args, **kwargs): operation=OperationEnum.MODIFY_USER_EMAIL, object_type=ObjectTypeEnum.USER, object_id=tenant_user.id, + # 记录 name 方便前端展示 extras={"data_before": data_before, "name": tenant_user.data_source_user.username}, ) @@ -579,6 +581,7 @@ def put(self, request, *args, **kwargs): operation=OperationEnum.MODIFY_USER_PASSWORD, object_type=ObjectTypeEnum.USER, object_id=tenant_user.id, + # 记录 name 方便前端展示 extras={"name": tenant_user.data_source_user.username}, )