Commit a70944f5 authored by Adrian's avatar Adrian

Validando rutas y session

parent 2c5bd33b
......@@ -314,7 +314,8 @@ export default {
this.$store.commit('setSidenav', this.$storage.get('sidenav'));
}
this.roles = this.$storage.get('roles');
this.mRol = this.roles[0];
const [firstElement] = this.roles;
this.mRol = firstElement;
this.rol = this.$storage.get('rol');
}
this.layout = this.$storage.get('template') || 'right';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment