This commit is contained in:
iqudoo
2026-06-07 11:59:50 +08:00
parent 93798e05ec
commit 32dd3ab45e
4 changed files with 9 additions and 9 deletions

View File

@@ -44,7 +44,7 @@
</div>
</div>
<div class="header-right">
<div class="header-right" v-if="!!unitName">
<a-dropdown :trigger="['click']">
<a class="user-dropdown">
<span class="username" :title="unitName">{{ unitName }}</span>
@@ -182,7 +182,7 @@ watch(
const unitName = computed(() => {
const info = userStore.userInfo;
if (!info) return "";
return [info?.name, info?.username].filter(Boolean).join(" ");
return info?.nickname || info?.username || "更多";
});
// 切换侧边栏状态