From 543ff054a746762e99bb1318c092a6522386b4ed Mon Sep 17 00:00:00 2001 From: Renzo <rontivero@ultimamillasa.com.ar> Date: Mon, 28 Oct 2019 17:44:31 -0300 Subject: [PATCH] Modificando la URL y agregando el protocolo http:// a las URL --- ui/public/index.html | 2 +- ui/src/components/DropFile.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/public/index.html b/ui/public/index.html index d3daf0b..ff00a72 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -32,7 +32,7 @@ <p>El servicio de Sello de Tiempo de BFA permite demostrar que el contenido de cualquier documento digital existió en un momento y que desde entonces, no ha cambiado. Al sellar un archivo, cualquiera podrá verificar el dÃa y la hora en que su hash fue almacenado en Blockchain Federal Argentina. Tené en cuenta que el documento seleccionado nunca se sube a la red, garantizando su privacidad.</p> <p class="font_small"><a href="https://bfa.ar/sello">Si tenés un archivo con Recibo Digital (.rd) verificalo aquÃ</a></p> <div id="app" - apiurl="https://tsa2.buenosaires.gob.ar" + apiurl="10.10.0.7:3000" lb_00=" El archivo " lb_01=" fue enviado con éxito para ser sellado" lb_02="Se ha producido un error al intentar sellar " diff --git a/ui/src/components/DropFile.vue b/ui/src/components/DropFile.vue index cc65ded..3e49a64 100644 --- a/ui/src/components/DropFile.vue +++ b/ui/src/components/DropFile.vue @@ -157,9 +157,10 @@ export default { var self = this; self.verifyCounter = 0; for (let i = 0; i < self.uploadedFiles.length; i++) { - + var h = self.allHashes[i]; - let verifyUrl = `${this.apiurl}/verify/`+h + let verifyUrl = `http://${this.apiurl}/verify/`+h + console.log(`${this.apiurl}/verify/`+h) self.loading = true axios.get(verifyUrl).then((res) => { //console.log(res.data) @@ -195,7 +196,7 @@ export default { }, verifybyURL(h){ var self = this; - let verifyUrl = `${this.apiurl}/verify/`+h + let verifyUrl = `http://${this.apiurl}/verify/`+h self.loading = true axios.get(verifyUrl).then((res) => { //console.log(res.data) @@ -215,7 +216,7 @@ export default { stamp() { var self = this; - let stampUrl = `${self.apiurl}/stamp` + let stampUrl = `http://${self.apiurl}/stamp` self.loading = true axios.post(stampUrl, { hashes: self.allHashes -- GitLab