src/store/modules/user.js
@@ -30,6 +30,9 @@ const user = { state: { id: getStore({ name: 'id' }), userInfo: getStore({ name: 'userInfo' }) || {}, @@ -198,6 +201,14 @@ } }, mutations: { SET_ID: (state, id) => { state.id = id setStore({ name:'id', content: state.id, type: 'session' }) }, SET_ACCESS_TOKEN: (state, access_token) => { state.access_token = access_token setStore({