From 9440b5c4c9a93288c0a590b371a2beb9ac4d91ae Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 21 十月 2024 11:12:11 +0800 Subject: [PATCH] 教师端发版 --- src/store/modules/user.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 9bddf14..2107ebd 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -19,11 +19,11 @@ const mutations = { setUserName (state, userName) { state.userName = userName - Cookies.set('adminUserName', userName, { expires: 30 }) + Cookies.set('adminUserName', userName, { expires: 300 }) }, setUserInfo: (state, userInfo) => { state.userInfo = userInfo - Cookies.set('adminUserInfo', userInfo, { expires: 30 }) + Cookies.set('adminUserInfo', userInfo, { expires: 300 }) }, clearLogin (state) { Cookies.remove('adminUserName') -- Gitblit v1.8.0