Fixed issue where the login guard starts an endless loop

This commit is contained in:
Ferdinand Thiessen 2020-11-12 01:55:43 +01:00
parent e26dc6c3a9
commit b069361c1a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export default boot<Store<StateInterface>>(({ router, store }) => {
store.dispatch('session/logout').catch(error => {
console.warn(error);
});
return next({ name: 'login', query: { redirect: to.fullPath } });
return;
}
if (