sso-login调整

This commit is contained in:
2026-08-27 16:37:33 +08:00
parent 2d19c736a6
commit 989120cab8
4 changed files with 291 additions and 67 deletions
+2 -2
View File
@@ -139,13 +139,13 @@ export default function HomePage() {
color: '#04121f',
background: 'linear-gradient(135deg, #00d4ff, #4f9eff)',
}}>
{userInfo.userId.charAt(0).toUpperCase()}
{(userInfo.userName ?? userInfo.userId).charAt(0).toUpperCase()}
</div>
<span style={{
fontSize: 13,
...(isDark ? { color: 'rgba(168,216,255,0.85)' } : { color: '#334155' }),
}}>
{userInfo.userId}
{userInfo.userName ?? userInfo.userId}
</span>
<button
onClick={handleLogout}