🚨fix: 로그인 로직 반복처리 되던 문제 해결

This commit is contained in:
yoosangwook 2024-12-18 11:04:22 +09:00
parent a4af0dc006
commit bf26864f61
2 changed files with 9 additions and 9 deletions

View File

@ -51,13 +51,13 @@ export default async function RootLayout({ children }) {
}
}
if (!headerPathname.includes('/login') && !session.isLoggedIn) {
redirect('/login')
}
// if (!headerPathname.includes('/login') && !session.isLoggedIn) {
// redirect('/login')
// }
if (headerPathname === '/login' && session.isLoggedIn) {
redirect('/')
}
// if (headerPathname === '/login' && session.isLoggedIn) {
// redirect('/')
// }
return (
<RecoilRootWrapper>

View File

@ -85,9 +85,9 @@ export default function Header(props) {
})
}
useEffect(() => {
getAutoLoginParam()
}, [userSession])
// useEffect(() => {
// getAutoLoginParam()
// }, [userSession])
const menus = [
{ id: 0, name: 'header.menus.home', url: '/', children: [] },