mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-06 03:57:53 +08:00
Merge 01f36e0656a80269899be63c2cd3043cfffc2862 into 6858a9ad67483025f6a9432a926beb9327037be3
This commit is contained in:
commit
3a51acdba4
@ -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…
x
Reference in New Issue
Block a user