diff --git a/src/store/modules/user.js b/src/store/modules/user.js index e5b3371da..5e086ad2b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -13,7 +13,7 @@ const user = { }, mutations: { SET_TOKEN: (state, token) => { - Vue.ls.set(ACCESS_TOKEN, token) + Vue.ls.set(ACCESS_TOKEN, token, token ? token.expired_in * 1000 : null) state.token = token }, CLEAR_TOKEN: state => {