docs(form): improve joi example

This commit is contained in:
Benjamin Canac
2025-04-09 15:38:49 +02:00
parent f3098df84a
commit 25913188a7

View File

@@ -15,7 +15,7 @@ const state = reactive({
})
const toast = useToast()
async function onSubmit(event: FormSubmitEvent<typeof schema>) {
async function onSubmit(event: FormSubmitEvent<typeof state>) {
toast.add({ title: 'Success', description: 'The form has been submitted.', color: 'success' })
console.log(event.data)
}