From 69245203909b8cef5340a75a82e284375c2f4388 Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 18 Aug 2021 15:54:23 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=BB=B6=E9=95=BF=20Cookie=20=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/login.vue b/pages/login.vue index 34f7b2f..5e95e72 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -114,7 +114,7 @@ export default { _ts.$store.commit('setAuth', auth) // mutating to store for client rendering localStorage.setItem('user', JSON.stringify(user)) _ts.$store.commit('setUser', user) // mutating to store for client rendering - Cookie.set('auth', auth) + Cookie.set('auth', auth, { expires: 7 }) if (_ts.historyUrl) { window.location.href = _ts.historyUrl } else {