🚨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) {
|
// if (!headerPathname.includes('/login') && !session.isLoggedIn) {
|
||||||
redirect('/login')
|
// redirect('/login')
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (headerPathname === '/login' && session.isLoggedIn) {
|
// if (headerPathname === '/login' && session.isLoggedIn) {
|
||||||
redirect('/')
|
// redirect('/')
|
||||||
}
|
// }
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RecoilRootWrapper>
|
<RecoilRootWrapper>
|
||||||
|
|||||||
@ -85,9 +85,9 @@ export default function Header(props) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
getAutoLoginParam()
|
// getAutoLoginParam()
|
||||||
}, [userSession])
|
// }, [userSession])
|
||||||
|
|
||||||
const menus = [
|
const menus = [
|
||||||
{ id: 0, name: 'header.menus.home', url: '/', children: [] },
|
{ id: 0, name: 'header.menus.home', url: '/', children: [] },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user