Skip to content

Commit

Permalink
1.头像显示
Browse files Browse the repository at this point in the history
  • Loading branch information
pwh-pwh committed Jul 26, 2024
1 parent 624fb7b commit ce262d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/MsgItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ const copyText = () => {
<template>
<div :class="['flex align-items-start mb-4 px-3', positionClass]">
<div class="w-3rem h-3rem flex align-items-center justify-content-center p-1 border-circle mx-2">
<Avatar v-if="message.userType === 'assistant'" :image="avatarImg" shape="circle" size="large" @click="copyText" v-tooltip="'copy text'"/>
<Avatar :image="avatarImg" shape="circle" size="large" @click="copyText" v-tooltip="'copy text'"/>
</div>
<div class="dybg border-round px-1 w-full">
<p class="text-red-800 text-left pl-2 text-xl white-space-normal">
{{ message.content }}
</p>
<!-- <div class="flex justify-content-end align-items-center">
<i @click="copyText" v-if="message.userType === 'assistant'" v-tooltip="'copy text'" class="pi pi-copy text-gray-800 mr-2 mb-2" style="font-size: 1rem"></i>
</div>-->
<!-- <div class="flex justify-content-end align-items-center">
<i @click="copyText" v-if="message.userType === 'assistant'" v-tooltip="'copy text'" class="pi pi-copy text-gray-800 mr-2 mb-2" style="font-size: 1rem"></i>
</div>-->
</div>
</div>
</template>
Expand Down

0 comments on commit ce262d7

Please sign in to comment.