로그인후 다른메뉴 이동 후 로그아웃. 뒤로가기하면 메인으로 이동되는 현상 대응

This commit is contained in:
basssy 2025-03-06 09:20:42 +09:00
parent 6bdfac04e7
commit c5ea37acff

View File

@ -14,7 +14,6 @@ export const useMainContentsController = () => {
const router = useRouter()
useEffect(() => {
console.log('111111111111111111111111111111')
checkSession().then((res) => {
if (!res) {
router.replace('/login')