diff --git a/components/header.tsx b/components/header.tsx index e9aad90..3bd8c81 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -51,7 +51,7 @@ export function Header() { const [mobileOpen, setMobileOpen] = useState(false) const pathname = usePathname() const router = useRouter() - const { isAuthenticated, currentRole, switchRole, login, logout } = useAuthStore() + const { isAuthenticated, currentRole, switchRole, logout } = useAuthStore() const unreadCount = mockNotifications.filter((n) => !n.read).length @@ -142,12 +142,14 @@ export function Header() { {currentUser.nickname} - - - - 个人主页 - - + {currentRole === "player" && ( + + + + 个人主页 + + + )} @@ -191,8 +193,8 @@ export function Header() { ) : (
-