diff --git a/frontend/src/main.js b/frontend/src/main.js index e534743c3..823df516c 100755 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -40,7 +40,7 @@ Vue.config.productionTip = false loadAllRules(i18n) router.beforeEach((to, from, next) => { - if (to.meta.requiresAuth && !store.state.sessionId) { + if (to.meta.requiresAuth && !store.state.token) { next({ path: '/login' }) } else { next()