Browse Source

weitere Tests wegen CORS

test1
Georg Spar 1 year ago
parent
commit
3eb747b6fe
  1. 8
      components/Typ.vue
  2. 4
      nuxt.config.js

8
components/Typ.vue

@ -7,13 +7,13 @@
id="ip-g-1"
label="Bezeichnung:"
label-for="bezeichnung"
description="Name des Zertifikat-Typs:"
description="Bezeichnung des Kleidungs-Typs:"
>
<b-form-input
id="bezeichnung"
v-model="form.bezeichnung"
required
placeholder="Name eingeben"
placeholder="Bezeichnung eingeben"
size="50"
>
</b-form-input>
@ -107,8 +107,7 @@
onReset(event) {
event.preventDefault();
this.form.name = '';
this.form.laufzeit = 0;
this.form.bezeichnung = '';
},
onFill(item) {
@ -116,7 +115,6 @@
if(item.length !== 0) {
this.form.bezeichnung = item[0].bezeichnung;
this.form.id = item[0].id;
this.form.laufzeit = parseInt(item[0].laufzeit);
console.log(JSON.stringify(item[0].bezeichnung));
}
}

4
nuxt.config.js

@ -49,8 +49,8 @@ export default {
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: '/',
browserBaseURL: '/',
//baseURL: '/',
//browserBaseURL: '/',
//proxy: true
},

Loading…
Cancel
Save