Fix: Use refresh for logout

This commit is contained in:
winkidney
2019-11-29 14:40:04 +08:00
committed by Isaac Bythewood
parent 602ca97d00
commit d5a0260d51
2 changed files with 2 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ export default {
logOut() { logOut() {
api.User.logOut().then( api.User.logOut().then(
() => { () => {
this.$router.push('/'); window.location.reload();
}, },
); );
}, },

View File

@@ -39,7 +39,7 @@ const User = {
const self = this; const self = this;
return new Promise( return new Promise(
(resolve) => { (resolve) => {
axios.get('/api-auth/logout/?next=/api/v2/').then( axios.get('/api-auth/logout/').then(
() => { () => {
storage.set(self.storageKey, null, 1); storage.set(self.storageKey, null, 1);
resolve(); resolve();