feat: 修复用户姓名显示逻辑,确保正确展示用户的真实姓名

This commit is contained in:
2026-01-20 05:35:45 +07:00
parent 5c2a6261b0
commit 064a5de027

View File

@@ -32,7 +32,7 @@ const { userProfile } = storeToRefs(userStore);
<ion-icon :icon="personOutline" class="text-xl text-primary" />
<span class="label">真实姓名</span>
</div>
<span class="value">{{ userProfile?.fullName || '-' }}</span>
<span class="value">{{ userProfile?.user.name || '-' }}</span>
</div>
<!-- 手机号 -->
@@ -45,13 +45,13 @@ const { userProfile } = storeToRefs(userStore);
</div>
<!-- 身份证号 -->
<div class="info-item">
<!-- <div class="info-item">
<div class="flex items-center gap-2">
<ion-icon :icon="cardOutline" class="text-xl text-primary" />
<span class="label">身份证号</span>
</div>
<span class="value">{{ (userProfile as any)?.idCard || '-' }}</span>
</div>
</div> -->
</div>
</div>
</ion-content>