perf: image and auth

This commit is contained in:
archer
2023-04-28 14:01:27 +08:00
parent 75073a64fb
commit ca8e940c9b
8 changed files with 24 additions and 22 deletions

View File

@@ -470,8 +470,12 @@ const Chat = ({ modelId, chatId }: { modelId: string; chatId: string }) => {
<Menu autoSelect={false}>
<MenuButton as={Box} mr={media(4, 1)} cursor={'pointer'}>
<Image
src={item.obj === 'Human' ? '/icon/human.png' : chatData.avatar}
alt="/icon/logo.png"
src={
item.obj === 'Human'
? '/icon/human.png'
: chatData.avatar || '/icon/logo.png'
}
alt="avatar"
width={media(30, 20)}
height={media(30, 20)}
/>