From 8f6ef3d8f9b491f990e132a914a8728ab0482a1d Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Mon, 10 Oct 2022 16:57:36 +0800 Subject: [PATCH] =?UTF-8?q?token=E6=94=B9=E6=88=9012=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/utils/accessToken.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {