From 3b2ae10a97f172ef9d051c4effe9959e126223c3 Mon Sep 17 00:00:00 2001 From: Georg Spar Date: Mon, 5 Jun 2023 19:56:32 +0200 Subject: [PATCH] Typ.vue angepasst auf 127.0.0.1 --- components/Typ.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Typ.vue b/components/Typ.vue index d98d6be..c57a055 100644 --- a/components/Typ.vue +++ b/components/Typ.vue @@ -68,14 +68,14 @@ async fetch() { console.log("fetching..."); this.certs = await fetch( - 'http://localhost:8081/api/v1/typ' + 'http://127.0.0.1:8081/api/v1/typ' ).then(res => res.json()) }, async onSubmit() { // event.preventDefault(); this.form.id = ""; console.log("submitting..."); - await this.$http.$post('http://localhost:8081/api/v1/typ', this.form); + await this.$http.$post('http://127.0.0.1:8081/api/v1/typ', this.form); // return result; // this.subm(this.form); this.fetch(); @@ -87,7 +87,7 @@ console.log("updating..."); console.log("Laufzeit: ", this.form.laufzeit) console.log(this.form); - await this.$http.$put('http://localhost:8081/api/v1/typ/'+this.form.id, this.form); + await this.$http.$put('http://127.0.0.1:8081/api/v1/typ/'+this.form.id, this.form); // return result; // this.subm(this.form); this.fetch(); @@ -97,7 +97,7 @@ async onDelete() { // event.preventDefault(); console.log("updating..."); - await this.$http.$delete('http://localhost:8081/api/v1/typ/'+this.form.id); + await this.$http.$delete('http://127.0.0.1:8081/api/v1/typ/'+this.form.id); // return result; // this.subm(this.form); this.fetch();