async function onSubmit(event: Event) {
await $fetch("/api/configure", {
method: "POST",
body: JSON.stringify(state),
});
}
</script>
<template>
<UContainer>
<UCard class="min-w-">
<UForm
:schema="formDataSchema"
:state="state"
class="space-y-4"
@submit="onSubmit"
>
async function onSubmit(event: Event) {
await $fetch("/api/configure", {
method: "POST",
body: JSON.stringify(state),
});
}
</script>
<template>
<UContainer>
<UCard class="min-w-">
<UForm
:schema="formDataSchema"
:state="state"
class="space-y-4"
@submit="onSubmit"
>