From c395a5d0b5fc6e479ec2b92705e2aefc87ad4269 Mon Sep 17 00:00:00 2001 From: Andres2908 Date: Thu, 27 Jan 2022 00:13:53 -0600 Subject: [PATCH] Conexion con endpoints de la api --- components/Login.vue | 2 +- components/registro/DatosUsuario.vue | 33 +++++++++++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/components/Login.vue b/components/Login.vue index 828715b..26e5deb 100644 --- a/components/Login.vue +++ b/components/Login.vue @@ -71,7 +71,7 @@ export default { axios .post(`${process.env.api}/usuario/login`, data) .then((res) => { - const info = res.data.data + const info = res.data localStorage.setItem('datosUsuario', JSON.stringify(info)) // localStorage.setItem('token', info.token) this.updateIsLoading(false) diff --git a/components/registro/DatosUsuario.vue b/components/registro/DatosUsuario.vue index 544bef0..067a682 100644 --- a/components/registro/DatosUsuario.vue +++ b/components/registro/DatosUsuario.vue @@ -7,7 +7,7 @@

Carrera: {{ datosUsuario.carrera }}

- + - {{ props.row.nombreArea }} + {{ props.row.idArea }}