diff --git a/src/utils/auth.ts b/src/utils/auth.ts index b55d676d..7da49b08 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -20,7 +20,7 @@ export const getRefreshToken = () => { // 设置token export const setToken = (token: TokenType) => { - wsCache.set(RefreshTokenKey, token.refreshToken, { exp: token.expiresTime }) + wsCache.set(RefreshTokenKey, token.refreshToken) wsCache.set(AccessTokenKey, token.accessToken) }