logout 호출 시 전부 login 으로 튕기도록 수정
This commit is contained in:
parent
8475dc4b1f
commit
6c23240345
@ -130,12 +130,14 @@ export default function ChangePasswordPop(props) {
|
|||||||
} else {
|
} else {
|
||||||
setIsGlobalLoading(false)
|
setIsGlobalLoading(false)
|
||||||
logout()
|
logout()
|
||||||
|
router.replace('/login', undefined, { shallow: true })
|
||||||
console.log('code not 200 error')
|
console.log('code not 200 error')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setIsGlobalLoading(false)
|
setIsGlobalLoading(false)
|
||||||
logout()
|
logout()
|
||||||
|
router.replace('/login', undefined, { shallow: true })
|
||||||
console.log('catch::::::::', error)
|
console.log('catch::::::::', error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user