feat(bd、bdleader): 修复没有显示默认头像的问题

This commit is contained in:
hzj 2025-11-19 10:38:29 +08:00
parent 578cb30b5e
commit fc23fe08b6
2 changed files with 18 additions and 12 deletions

View File

@ -41,17 +41,20 @@
style="
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
"
>
<img
v-if="userInfo.userAvatar || ''"
style="width: 100%; height: 100%; object-fit: cover; border-radius: 25px"
:src="userInfo.userAvatar"
:src="userInfo.userAvatar || ''"
style="
display: block;
width: 100%;
aspect-ratio: 1/1;
object-fit: cover;
border-radius: 50%;
"
@error="defaultAvatarUrl"
/>
</div>
@ -387,7 +390,7 @@
"
>
<img
:src="member.userAvatar"
:src="member.userAvatar || ''"
alt=""
style="
display: block;

View File

@ -41,17 +41,20 @@
style="
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
"
>
<img
v-if="userInfo.userAvatar || ''"
style="width: 100%; height: 100%; object-fit: cover; border-radius: 25px"
:src="userInfo.userAvatar"
:src="userInfo.userAvatar || ''"
style="
display: block;
width: 100%;
aspect-ratio: 1/1;
object-fit: cover;
border-radius: 50%;
"
@error="defaultAvatarUrl"
/>
</div>
@ -566,7 +569,7 @@
"
>
<img
:src="member.userAvatar"
:src="member.userAvatar || ''"
alt=""
style="
display: block;