pull/3445/head
Ryan Wang 2020-04-18 12:13:23 +08:00 committed by GitHub
parent c47f04f384
commit 57b7c91640
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {