mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
feat: 移除了登录导航功能
This commit is contained in:
parent
3515ead1f2
commit
0cef032173
@ -36,7 +36,6 @@ export function useAuth() {
|
||||
localStorage.removeItem('user');
|
||||
setIsAuthenticated(false);
|
||||
setUser(null);
|
||||
navigate('/login');
|
||||
};
|
||||
|
||||
return { isAuthenticated, isLoading, user, login, logout };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user