From 0cef032173c02395965dee9cb1c38e6f54967365 Mon Sep 17 00:00:00 2001 From: zyh Date: Tue, 22 Oct 2024 06:51:00 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E4=BA=86=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=AF=BC=E8=88=AA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hooks/useAuth.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/app/hooks/useAuth.ts b/app/hooks/useAuth.ts index a7117c2..26ed9d1 100644 --- a/app/hooks/useAuth.ts +++ b/app/hooks/useAuth.ts @@ -36,7 +36,6 @@ export function useAuth() { localStorage.removeItem('user'); setIsAuthenticated(false); setUser(null); - navigate('/login'); }; return { isAuthenticated, isLoading, user, login, logout };