转账修改
This commit is contained in:
1 parent
3c27c10871
commit
4269ce8ab8
4 files changed
+28
-10
No files matched your search
@@ -122,6 +122,10 @@ async function checkAndRefreshToken(tokenStorage: any) {
|
||||
|
||||
const expiresDate = new Date(accessToken.expiresAt).getTime()
|
||||
|
||||
// console.log("过期时间", expiresDate)
|
||||
// console.log("现在时间", new Date().getTime())
|
||||
// console.log("现在时间大于过期时间吗", new Date().getTime() >= expiresDate)
|
||||
|
||||
// token已过期,尝试刷新
|
||||
if (new Date().getTime() >= expiresDate) {
|
||||
await autoLogin()
|
||||
|
||||
Reference in new issue
Block a user