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" id="ip-g-1"
label="Bezeichnung:" label="Bezeichnung:"
label-for="bezeichnung" label-for="bezeichnung"
description="Name des Zertifikat-Typs:" description="Bezeichnung des Kleidungs-Typs:"
> >
<b-form-input <b-form-input
id="bezeichnung" id="bezeichnung"
v-model="form.bezeichnung" v-model="form.bezeichnung"
required required
placeholder="Name eingeben" placeholder="Bezeichnung eingeben"
size="50" size="50"
> >
</b-form-input> </b-form-input>
@ -107,8 +107,7 @@
onReset(event) { onReset(event) {
event.preventDefault(); event.preventDefault();
this.form.name = ''; this.form.bezeichnung = '';
this.form.laufzeit = 0;
}, },
onFill(item) { onFill(item) {
@ -116,7 +115,6 @@
if(item.length !== 0) { if(item.length !== 0) {
this.form.bezeichnung = item[0].bezeichnung; this.form.bezeichnung = item[0].bezeichnung;
this.form.id = item[0].id; this.form.id = item[0].id;
this.form.laufzeit = parseInt(item[0].laufzeit);
console.log(JSON.stringify(item[0].bezeichnung)); 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 module configuration: https://go.nuxtjs.dev/config-axios
axios: { axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308 // Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: '/', //baseURL: '/',
browserBaseURL: '/', //browserBaseURL: '/',
//proxy: true //proxy: true
}, },

Loading…
Cancel
Save