Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'$route' (to, from) {
Events.$emit('app.route.update', from.path, to.path)
}
},
const toNext = (to, next, path = '') => {
Events.$emit('app.route.before', to, path)
if (path) {
return next(path)
}
next()
}