🚨fix: 로그인 로직 반복처리 되던 문제 해결
This commit is contained in:
parent
a4af0dc006
commit
bf26864f61
@ -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>
|
||||
|
||||
@ -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: [] },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user