From a142078f64027eba52c6e422eab34533f2bd09bb Mon Sep 17 00:00:00 2001 From: Pitu Date: Fri, 15 Mar 2019 07:30:58 +0000 Subject: [PATCH] No need for this --- src/site/store/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/site/store/index.js b/src/site/store/index.js index 63f3feb..19ab0ae 100644 --- a/src/site/store/index.js +++ b/src/site/store/index.js @@ -17,20 +17,16 @@ export const mutations = { }, user(state, payload) { if (!payload) { - state.user = {}; - localStorage.removeItem('lolisafe-user'); + state.user = null; return; } - localStorage.setItem('lolisafe-user', JSON.stringify(payload)); state.user = payload; }, token(state, payload) { if (!payload) { - localStorage.removeItem('lolisafe-token'); state.token = null; return; } - localStorage.setItem('lolisafe-token', payload); setAuthorizationHeader(payload); state.token = payload; },