diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 4a14fa1d..bdbe300c 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -67,10 +67,10 @@ const user = { commit }) { return new Promise(resolve => { - commit('CLEAR_TOKEN') adminApi .logout() .then(response => { + commit('CLEAR_TOKEN') resolve() }) .catch(() => {