feat: 解决导航跳转失效的问题
This commit is contained in:
@@ -43,7 +43,9 @@ import { useAuth } from '../../contexts/AuthContext';
|
||||
* 2. !isMobile
|
||||
*/
|
||||
const NavItems = ({ isAuthenticated, user }) => {
|
||||
if (isAuthenticated && user) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
if (!isAuthenticated && !user) {
|
||||
return (
|
||||
<HStack spacing={8}>
|
||||
<Menu>
|
||||
|
||||
Reference in New Issue
Block a user