fix: token refreshing logic issue (#9308)

This commit is contained in:
Wu Tianwei
2024-10-14 16:54:23 +08:00
committed by GitHub
parent 7838f9f3a3
commit 3938d8863e
4 changed files with 20 additions and 23 deletions

View File

@@ -99,7 +99,7 @@ const NormalForm = () => {
if (res.result === 'success') {
localStorage.setItem('console_token', res.data.access_token)
localStorage.setItem('refresh_token', res.data.refresh_token)
getNewAccessToken(res.data.access_token, res.data.refresh_token)
getNewAccessToken()
router.replace('/apps')
}
else {