diff --git a/src/App.vue b/src/App.vue index 0d1ce00..4d55eb9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -55,16 +55,6 @@ .then(() => this.$router.push({ name: 'login' })); } }, - // pre-route auth checking - beforeRouteEnter(to, from, next) { - // if user is authenticated, continue - if (store.getters.isAuthenticated) return next(); - - // otherwise, redirect to login, preserving the requested route - const { name, fullPath } = to; - const query = (name !== undefined) ? { redirect: name } : { prev: fullPath }; - return next({ name: 'login', query }); - }, }