调整后台用户资料显示的逻辑

This commit is contained in:
Eamon-meng
2026-01-19 10:02:03 +08:00
parent 7dc562aad0
commit fc47ec9d18

View File

@@ -26,7 +26,7 @@ export default async function UserCenter() {
<Card className="h-full">
<CardContent className="flex-auto flex flex-col justify-between gap-4">
<div className="flex flex-col gap-1">
<p>{profile.username?.trim() || profile.email || profile.phone}</p>
<p>{profile.username?.trim() || profile.phone || profile.email}</p>
<p className="text-sm text-weak">{`最后登录:${format(profile.last_login, 'yyyy-MM-dd HH:mm')}`}</p>
</div>
<div className={merge(