chore: modify header avatar

This commit is contained in:
chansee97 2024-04-04 22:43:20 +08:00
parent 0df23f401d
commit a53c9e57f5
2 changed files with 10 additions and 9 deletions

View File

@ -49,7 +49,7 @@ const appStore = useAppStore()
<CollapaseButton />
<Breadcrumb />
</div>
<div class="flex-y-center h-full">
<div class="flex-y-center gap-1 h-full p-x-xl">
<Search />
<Notices />
<FullScreen />

View File

@ -64,14 +64,15 @@ function handleSelect(key: string | number) {
:options="options"
@select="handleSelect"
>
<CommonWrapper>
<n-avatar
round
size="large"
:src="userInfo?.avatar"
/>
<span class="overflow-hidden text-ellipsis whitespace-nowrap">{{ userInfo?.nickname }}</span>
</CommonWrapper>
<n-avatar
round
:src="userInfo?.avatar"
>
<template #fallback>
<icon-park-outline-user />
</template>
</n-avatar>
</n-dropdown>
</template>