From 23dcfe000b705ede85aef871daaf6316cd0d9753 Mon Sep 17 00:00:00 2001 From: lan-air Date: Sun, 11 Dec 2022 19:14:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=A4=E6=9D=AF=E9=83=BD*1000=EF=BC=8C?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=9C=80=E7=BB=88=E8=BF=87=E6=9C=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=BA7000=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index dac6e1c..17ff7cd 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -61,7 +61,7 @@ export const useUserStore = defineStore({ const response = await login(userInfo); const { result, code } = response; if (code === ResultEnum.SUCCESS) { - const ex = 7 * 24 * 60 * 60 * 1000; + const ex = 7 * 24 * 60 * 60; storage.set(ACCESS_TOKEN, result.token, ex); storage.set(CURRENT_USER, result, ex); storage.set(IS_LOCKSCREEN, false);