add fetch options

This commit is contained in:
Pete Matsyburka
2026-02-14 18:10:16 +02:00
parent 40052a2d7c
commit 871ef6dda6
4 changed files with 31 additions and 9 deletions
@@ -78,6 +78,11 @@ export default {
type: Array,
required: true
},
fetchOptions: {
type: Object,
required: false,
default: () => ({})
},
optionalSubmitters: {
type: Array,
required: false,
@@ -108,7 +113,8 @@ export default {
return fetch(this.url, {
method: 'POST',
body: new FormData(this.$refs.form)
body: new FormData(this.$refs.form),
...this.fetchOptions
}).then((response) => {
if (response.status === 200) {
this.$emit('success')