-
{avatarChar}
+
{user.avatar_url ?

: avatarChar}
diff --git a/core/frontend/src/types.ts b/core/frontend/src/types.ts
index a15c71e..c0f5f99 100644
--- a/core/frontend/src/types.ts
+++ b/core/frontend/src/types.ts
@@ -4,6 +4,8 @@ export type User = {
email: string;
status: string;
is_platform_admin?: boolean;
+ // 头像直链(后端 UserSerializer.avatar_url):空则前端回退姓氏首字占位
+ avatar_url?: string;
};
export type Team = {