From 3a9c66e99199cfe5475b80776a6a60b260ffd2d9 Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Mon, 3 Nov 2025 17:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E5=BD=95=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- management/src/views/login/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/src/views/login/login.vue b/management/src/views/login/login.vue index 536c8d66..efff83df 100644 --- a/management/src/views/login/login.vue +++ b/management/src/views/login/login.vue @@ -117,7 +117,7 @@ const handleLogin = async () => { const { code, msg, session, data: userInfo } = response.data; if (code === 0) { // 4. 登录成功:保存信息到Pinia - userStore.setLoginInfo(userInfo, session); + userStore.setLoginInfo(userInfo, session,Date.now() + 24 * 3600 * 1000); // 5. 显示成功提示 ElMessage.success(msg || '登录成功!');