From 6bbf3bfcba014bbba31dc208a02c4e9eba885f28 Mon Sep 17 00:00:00 2001 From: marcorv6 Date: Wed, 1 Jun 2022 20:34:02 -0500 Subject: [PATCH] premiaciones no mostrar inactivas --- pages/Profesor/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/Profesor/index.vue b/pages/Profesor/index.vue index 34ada05..80569be 100644 --- a/pages/Profesor/index.vue +++ b/pages/Profesor/index.vue @@ -199,6 +199,7 @@ export default { } ) .then((res) => { + console.log(res) this.isLoading = false if (res) this.premiaciones = res.data }) @@ -234,7 +235,7 @@ export default { this.Profesor.adscripcion = localStorage.getItem('adscripcion') this.Profesor.numeroTrabajador = localStorage.getItem('numeroTrabajador') await this.fetchPremiaciones() - if (this.premiaciones.length === 1) { + if (this.premiaciones.length === 1 && this.premiaciones.length > 0) { await this.yaRegistrado() } },