feat: 添加用户头像和名称显示功能到顶部栏

This commit is contained in:
2025-12-25 09:26:21 +08:00
parent 2a3e951acb
commit 48db4a045c
2 changed files with 23 additions and 3 deletions

View File

@@ -94,9 +94,8 @@ onMounted(() => {
<div class="layout-topbar-menu hidden lg:block">
<div class="layout-topbar-menu-content">
<template v-if="isLoggedIn">
<button type="button" class="layout-topbar-action flex items-center gap-2"
@click="toggleUserMenu">
<Avatar shape="circle" size="large" class="bg-surface-200 dark:bg-surface-700" />
<button type="button" class="layout-topbar-action layout-topbar-user" @click="toggleUserMenu">
<Avatar shape="circle" class="bg-surface-200 dark:bg-surface-700" />
<span>{{ displayName }}</span>
<i class="pi pi-angle-down"></i>
</button>