DesktopToolbar.vue refactoring

This commit is contained in:
Peter Papp
2021-08-20 16:49:51 +02:00
parent 15fba236d7
commit fb6dfbe7b4
6 changed files with 117 additions and 103 deletions

View File

@@ -720,6 +720,8 @@ const router = new Router({
router.beforeEach((to, from, next) => {
store.commit('SET_PREVIOUS_LOCATION', from.name)
if (to.matched.some(record => record.meta.requiresAuth)) {
// this route requires auth, check if logged in
// if not, redirect to login page.