mirror of https://github.com/halo-dev/halo
fix: token expire (halo-dev/console#129)
parent
c47f04f384
commit
57b7c91640
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue