feat: 提交

This commit is contained in:
xy
2026-10-03 16:12:59 +08:00
parent 05c5723419
commit 69c7431a1f
3 changed files with 4 additions and 9 deletions
@@ -23,10 +23,7 @@ defineExpose({ open })
<p v-if="loading" role="status">正在加载个人信息…</p>
<div v-else-if="profile" class="profile-grid">
<label class="full"
>ID(系统用户ID)<input
:value="profile.employeeId ?? profile.id"
disabled
:title="profile.id"
>ID(员工编号)<input :value="profile.employeeId ?? '—'" disabled
/></label>
<label>工号<input :value="profile.employeeNo || '—'" disabled /></label>
<label>姓名<input :value="profile.displayName" disabled /></label>
+2 -4
View File
@@ -123,9 +123,7 @@ async function handleLogout() {
<span class="menu-profile-copy">
<strong>{{ loginStore.userName }}</strong>
<span :title="identity">{{ identity }}</span>
<span :title="loginStore.user?.id"
>ID {{ loginStore.user?.employeeId ?? loginStore.user?.id ?? '—' }}</span
>
<span>ID {{ loginStore.user?.employeeId ?? '—' }}</span>
</span>
<span class="menu-profile-arrow" aria-hidden="true">⌃</span>
</button>
@@ -133,7 +131,7 @@ async function handleLogout() {
<div class="account-actions" @keydown.esc="accountMenuOpen = false">
<div class="account-summary">
<strong>{{ loginStore.userName }}</strong>
<span>ID {{ loginStore.user?.employeeId ?? loginStore.user?.id ?? '—' }}</span>
<span>ID {{ loginStore.user?.employeeId ?? '—' }}</span>
<span>工号 {{ loginStore.user?.employeeNo || '—' }}</span>
<span>{{ loginStore.user?.campusName || '—' }} · {{ loginStore.department }}</span>
</div>