diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 78009412..c46c09ea 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -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()