src/store/modules/user.js
@@ -113,12 +113,16 @@ LogOut({ commit, state }) { return new Promise((resolve, reject) => { logout(state.token) .then(() => { commit("SET_TOKEN", ""); commit("SET_ROLES", []); commit("SET_PERMISSIONS", []); removeToken(); resolve(); .then((res) => { if (res.data) { window.location.href = res.data } else { commit("SET_TOKEN", ""); commit("SET_ROLES", []); commit("SET_PERMISSIONS", []); removeToken(); resolve(); } }) .catch((error) => { reject(error);