#64 Fix
This commit is contained in:
@@ -7,6 +7,9 @@ const props = defineProps({
|
||||
pin: { type: String, default: '' }
|
||||
})
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
|
||||
|
||||
const emit = defineEmits(['success'])
|
||||
const { $api } = useNuxtApp()
|
||||
const toast = useToast()
|
||||
@@ -75,7 +78,7 @@ const submit = async () => {
|
||||
if (props.pin) headers['x-public-pin'] = props.pin
|
||||
|
||||
// An den Submit-Endpunkt senden (den müssen wir im Backend noch bauen!)
|
||||
await $fetch(`http://localhost:3100/workflows/submit/${props.token}`, {
|
||||
await $fetch(`${config.public.apiBase}/workflows/submit/${props.token}`, {
|
||||
method: 'POST',
|
||||
body: payload,
|
||||
headers
|
||||
@@ -132,6 +135,7 @@ const submit = async () => {
|
||||
value-attribute="id"
|
||||
placeholder="Wählen..."
|
||||
searchable
|
||||
searchable-placeholder="Suchen..."
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
@@ -147,6 +151,8 @@ const submit = async () => {
|
||||
option-attribute="name"
|
||||
value-attribute="id"
|
||||
placeholder="Wählen..."
|
||||
searchable
|
||||
searchable-placeholder="Suchen..."
|
||||
/>
|
||||
</UFormGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user