diff --git a/front/src/utils/accessToken.js b/front/src/utils/accessToken.js index e17ac6ee..b5df58f4 100644 --- a/front/src/utils/accessToken.js +++ b/front/src/utils/accessToken.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 * @LastEditors: Light - * @LastEditTime: 2022-10-10 16:52:10 + * @LastEditTime: 2022-10-10 16:56:17 * @Description: 告诉大家这是什么 */ import { storage, tokenTableName } from '@/config' @@ -42,7 +42,7 @@ export function setAccessToken(accessToken) { } else if ('sessionStorage' === storage) { return sessionStorage.setItem(tokenTableName, accessToken) } else if ('cookie' === storage) { - let expires = new Date(new Date() * 1 + 2 * 60 * 60 * 1000) + let expires = new Date(new Date() * 1 + 12 * 60 * 60 * 1000) return cookie.set(tokenTableName, accessToken, { expires: expires }) // return cookie.set(tokenTableName, '213124123412341234') } else {