#64 Fix
This commit is contained in:
@@ -7,7 +7,7 @@ const props = defineProps({
|
|||||||
pin: { type: String, default: '' }
|
pin: { type: String, default: '' }
|
||||||
})
|
})
|
||||||
|
|
||||||
const config = useRuntimeConfig()
|
const runtimeConfig = useRuntimeConfig()
|
||||||
|
|
||||||
|
|
||||||
const emit = defineEmits(['success'])
|
const emit = defineEmits(['success'])
|
||||||
@@ -78,7 +78,7 @@ const submit = async () => {
|
|||||||
if (props.pin) headers['x-public-pin'] = props.pin
|
if (props.pin) headers['x-public-pin'] = props.pin
|
||||||
|
|
||||||
// An den Submit-Endpunkt senden (den müssen wir im Backend noch bauen!)
|
// An den Submit-Endpunkt senden (den müssen wir im Backend noch bauen!)
|
||||||
await $fetch(`${config.public.apiBase}/workflows/submit/${props.token}`, {
|
await $fetch(`${runtimeConfig.public.apiBase}/workflows/submit/${props.token}`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: payload,
|
body: payload,
|
||||||
headers
|
headers
|
||||||
|
|||||||
Reference in New Issue
Block a user