From 46e8f56d0aef4c875b5b4549d0cdfdec49f9ea26 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 26 Mar 2024 12:43:17 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=89=8D=E7=AB=AFtoken=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=A0=87=E8=AE=B0=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/utils/auth.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/frontend/src/utils/auth.js b/core/frontend/src/utils/auth.js index 98ff9b5bf3..15e0ffa8f3 100644 --- a/core/frontend/src/utils/auth.js +++ b/core/frontend/src/utils/auth.js @@ -25,8 +25,7 @@ export function setToken(token) { } export function setTokenExp(exp) { if (exp) { - // return Cookies.set(TokenExpKey, exp) - return Cookies.set(TokenExpKey, new Date().getTime() + 5000) + return Cookies.set(TokenExpKey, exp) } return null }