cambios del 24 de abril

This commit is contained in:
2021-04-25 15:55:18 -05:00
parent 2b01e58388
commit 48dfb5e64f
19 changed files with 542 additions and 6462 deletions

View File

@@ -0,0 +1,10 @@
//If the user does not have a token, we send it to login
//si el usuario no tiene token lo enviamos a login
export default function({ store, redirect }) {
store.dispatch("readToken");
if (!store.state.auth) {
return redirect("/login");
}
}