feat: unified package

This commit is contained in:
wommy 2024-11-21 18:16:29 -05:00
parent f850db23fe
commit 0f42a4d580
335 changed files with 18102 additions and 19926 deletions

View file

@ -0,0 +1,9 @@
export default function ({ store, redirect, route, app }) {
// If the user is not authenticated
if (!store.state.user.user) {
if (route.name === 'batch' || route.name === 'index') {
return redirect('/login')
}
return redirect(`/login?redirect=${encodeURIComponent(route.fullPath)}`)
}
}