Merge pull request #2198 from YBY2020/main

perf : 代码细节优化
This commit is contained in:
Yifei Zhang 2023-06-30 14:35:41 +08:00 committed by GitHub
commit 5d6e7de667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -922,7 +922,7 @@ export function Chat() {
}} }}
></IconButton> ></IconButton>
</div> </div>
{message.role === "user" ? ( {isUser ? (
<Avatar avatar={config.avatar} /> <Avatar avatar={config.avatar} />
) : ( ) : (
<MaskAvatar mask={session.mask} /> <MaskAvatar mask={session.mask} />