Pre Merge pull request !169 from 呵呵大/N/A

pull/169/MERGE
呵呵大 2023-06-10 01:58:58 +00:00 committed by Gitee
commit 7638f704ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ export const getRefreshToken = () => {
// 设置token
export const setToken = (token: TokenType) => {
wsCache.set(RefreshTokenKey, token.refreshToken, { exp: token.expiresTime })
wsCache.set(AccessTokenKey, token.accessToken)
wsCache.set(RefreshTokenKey, token.refreshToken)
wsCache.set(AccessTokenKey, token.accessToken, { exp: token.expiresTime })
}
// 删除token