Skip to content

Commit

Permalink
1.修复 pi-copy点击不到的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
pwh-pwh committed Jul 26, 2024
1 parent ce262d7 commit 7fe3a38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions frontend/src/components/MsgItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const positionClass = computed(() => {
}
})
const avatarImg = computed(() => {
if(props.message.userType === "user") {
if (props.message.userType === "user") {
return "https://s3.bmp.ovh/imgs/2024/07/25/b82d96fabe6f83e1.png"
} else {
return "https://s3.bmp.ovh/imgs/2024/07/25/f214b677e17f25f3.png"
Expand All @@ -37,9 +37,10 @@ const copyText = () => {
<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
2 changes: 1 addition & 1 deletion frontend/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ html {
background: linear-gradient(45deg, rgba(255, 110, 196, 0.4), rgba(120, 115, 245, 0.39), rgba(36, 198, 220, 0.4), rgba(212, 252, 121, 0.4), #96e6a1);
background-size: 400% 400%;
animation: gradient 25s ease infinite;
z-index: -1;
z-index: 0;
}

body {
Expand Down

0 comments on commit 7fe3a38

Please sign in to comment.