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 /> <CollapaseButton />
<Breadcrumb /> <Breadcrumb />
</div> </div>
<div class="flex-y-center h-full"> <div class="flex-y-center gap-1 h-full p-x-xl">
<Search /> <Search />
<Notices /> <Notices />
<FullScreen /> <FullScreen />

View File

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