This commit is contained in:
Ray.Hao
2025-12-11 10:11:22 +08:00
2 changed files with 14 additions and 5 deletions

View File

@@ -37,7 +37,13 @@
<div class="navbar-actions__item">
<el-dropdown trigger="click">
<div class="user-profile">
<img class="user-profile__avatar" :src="userStore.userInfo.avatar" />
<div style="width: 28px; height: 28px; overflow: hidden; border-radius: 50%">
<img
:src="userStore.userInfo.avatar"
class="user-profile__avatar"
style="width: 100%; height: 100%; object-fit: cover; object-position: center"
/>
</div>
<span class="user-profile__name">{{ userStore.userInfo.username }}</span>
</div>
<template #dropdown>