🚨fix: 로그인 처리 원복
This commit is contained in:
parent
c1fb6a08ca
commit
4977abcf35
@ -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>
|
||||||
|
|||||||
@ -98,7 +98,7 @@ export default function Login() {
|
|||||||
} else {
|
} else {
|
||||||
Cookies.remove('chkLoginId')
|
Cookies.remove('chkLoginId')
|
||||||
}
|
}
|
||||||
// router.push('/')
|
router.push('/')
|
||||||
} else {
|
} else {
|
||||||
alert(res.data.result.resultMsg)
|
alert(res.data.result.resultMsg)
|
||||||
}
|
}
|
||||||
@ -107,8 +107,6 @@ export default function Login() {
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
alert(error.response.data.message)
|
alert(error.response.data.message)
|
||||||
})
|
})
|
||||||
|
|
||||||
router.push('/')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 비밀번호 초기화 관련
|
// 비밀번호 초기화 관련
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user