为成员字段增加了头像

This commit is contained in:
Monster
2025-07-15 14:58:30 +08:00
parent eabb311f73
commit 973dde26d5
7 changed files with 9 additions and 0 deletions

View File

@@ -6,10 +6,12 @@ const User = ({
id,
username = '',
email = '',
avatar = '',
}: {
id?: string;
username?: string;
email?: string;
avatar?: string;
}) => {
return (
<Stack>
@@ -26,6 +28,7 @@ const User = ({
<Stack direction={'row'} alignItems={'center'} gap={1}>
<Avatar
name={username}
src={avatar}
sx={{ width: 20, height: 20, fontSize: 12 }}
/>
<Typography sx={{ pt: '2px' }}>{username}</Typography>

View File

@@ -49,6 +49,7 @@ const Chat = () => {
id={value.id!}
username={value.username!}
email={value.email!}
avatar={value.avatar_url!}
/>
);
},

View File

@@ -94,6 +94,7 @@ const Completion = () => {
id={value.id!}
username={value.username!}
email={value.email!}
avatar={value.avatar_url!}
/>
);
},

View File

@@ -24,6 +24,7 @@ const LoginHistory = () => {
username={record.user!.username!}
id={record.user!.id!}
email={record.user!.email!}
avatar={record.user!.avatar_url!}
/>
);
},

View File

@@ -257,6 +257,7 @@ const MemberManage = () => {
id={record.id!}
username={record.username!}
email={record.email!}
avatar={record.avatar_url}
/>
);
},

View File

@@ -49,6 +49,7 @@ const Chat = () => {
id={value.id!}
username={value.username!}
email={value.email!}
avatar={value.avatar_url!}
/>
);
},

View File

@@ -94,6 +94,7 @@ const Completion = () => {
id={value.id!}
username={value.username!}
email={value.email!}
avatar={value.avatar_url!}
/>
);
},