mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 09:55:50 +01:00
Fix: Use refresh for logout
This commit is contained in:
committed by
Isaac Bythewood
parent
602ca97d00
commit
d5a0260d51
@@ -105,7 +105,7 @@ export default {
|
||||
logOut() {
|
||||
api.User.logOut().then(
|
||||
() => {
|
||||
this.$router.push('/');
|
||||
window.location.reload();
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user