diff --git a/pinry-spa/src/components/PHeader.vue b/pinry-spa/src/components/PHeader.vue index ca9da69..f90e4c9 100644 --- a/pinry-spa/src/components/PHeader.vue +++ b/pinry-spa/src/components/PHeader.vue @@ -105,7 +105,7 @@ export default { logOut() { api.User.logOut().then( () => { - this.$router.push('/'); + window.location.reload(); }, ); }, diff --git a/pinry-spa/src/components/api.js b/pinry-spa/src/components/api.js index 3625a17..0c5569b 100644 --- a/pinry-spa/src/components/api.js +++ b/pinry-spa/src/components/api.js @@ -39,7 +39,7 @@ const User = { const self = this; return new Promise( (resolve) => { - axios.get('/api-auth/logout/?next=/api/v2/').then( + axios.get('/api-auth/logout/').then( () => { storage.set(self.storageKey, null, 1); resolve();