From 7be16f5a2cb1b0853be853ec4668203cd6a40c8f Mon Sep 17 00:00:00 2001 From: arturogll Date: Fri, 1 Feb 2019 12:37:04 +0000 Subject: [PATCH] fix :hora y usuario --- src/components/inicio/Equipo.vue | 4 +++- src/components/usuario/Prestamo.vue | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/inicio/Equipo.vue b/src/components/inicio/Equipo.vue index 588d1fa..85fd1f7 100644 --- a/src/components/inicio/Equipo.vue +++ b/src/components/inicio/Equipo.vue @@ -109,8 +109,10 @@ export default { }, maxFecha: function (date) { let dt = new Date(date) + dt.setMinutes(dt.getMinutes() + 30) + dt.setHours(dt.getHours() + 2) // console.log(dt) - return `${dt.getMonth() + 1}-${dt.getDate()} ${dt.getHours() + 2}:${dt.getMinutes() + 15}` + return `${dt.getMonth() + 1}-${dt.getDate()} ${dt.getHours()}:${dt.getMinutes()}` }, regresar: function (usr, pre) { axios({ diff --git a/src/components/usuario/Prestamo.vue b/src/components/usuario/Prestamo.vue index 7a28202..1915781 100644 --- a/src/components/usuario/Prestamo.vue +++ b/src/components/usuario/Prestamo.vue @@ -53,6 +53,11 @@ export default { prestamoData: {} } }, + watch: { + usuario: function () { + this.prestamoData = {} + } + }, methods: { prestamo: function () { axios({