bugfix: 解决导航跳转失效的问题

This commit is contained in:
zdl
2025-10-11 17:52:27 +08:00
parent da38f2b6a9
commit 1f5c95518e

View File

@@ -45,7 +45,7 @@ import { useAuth } from '../../contexts/AuthContext';
const NavItems = ({ isAuthenticated, user }) => {
const navigate = useNavigate();
if (!isAuthenticated && !user) {
if (isAuthenticated && user) {
return (
<HStack spacing={8}>
<Menu>