localstorage detalle
This commit is contained in:
@@ -214,13 +214,13 @@ export default {
|
||||
});
|
||||
},
|
||||
getIdLocal() {
|
||||
this.idUsuario = 1; //localStorage.getItem("idUsuario");
|
||||
this.idTipoUsuario = 2; //localStorage.getItem("idTipoUsuario");
|
||||
this.tipoUsuario = "responsable"; //localStorage.getItem("tipoUsuario");
|
||||
// if (this.idTipoUsuario != 2 && this.tipoUsuario != "responsable") {
|
||||
// localStorage.clear();
|
||||
// this.$router.push("/");
|
||||
// }
|
||||
this.idUsuario = localStorage.getItem("idUsuario");
|
||||
this.idTipoUsuario = localStorage.getItem("idTipoUsuario");
|
||||
this.tipoUsuario = localStorage.getItem("tipoUsuario");
|
||||
if (this.idTipoUsuario != 2 && this.tipoUsuario != "responsable") {
|
||||
localStorage.clear();
|
||||
this.$router.push("/");
|
||||
}
|
||||
},
|
||||
error(msj) {
|
||||
let salir = false;
|
||||
|
||||
Reference in New Issue
Block a user