pull/3327/merge
dyz 2024-11-28 00:29:02 +00:00 committed by GitHub
commit 3a51acdba4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()