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