diff --git a/components/casoEspecial/tablaServicios.vue b/components/casoEspecial/tablaServicios.vue index adb2842..d430e60 100644 --- a/components/casoEspecial/tablaServicios.vue +++ b/components/casoEspecial/tablaServicios.vue @@ -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;