router.beforeEach ((to, from, next) = > {
if (to.matched.some (record = > record.meta.requiresAuth)) {
if (!localStorage.token) {
next({
path: "/login",
query: { redirect: to.fullPath }
})
} else {
next()
}
} else {
next() // next()
}
})
to.matched.some (record = > record.meta.requiresAuth) what is the meaning of this paragraph? do you know any great gods?