pref:delete useless code
This commit is contained in:
parent
e85ef78c1a
commit
4303c78b78
|
@ -75,7 +75,7 @@ const actions = {
|
|||
// user logout
|
||||
logout({ commit, state, dispatch }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
logout(state.token).then(() => {
|
||||
logout().then(() => {
|
||||
commit('SET_TOKEN', '')
|
||||
commit('SET_ROLES', [])
|
||||
removeToken()
|
||||
|
|
Loading…
Reference in New Issue