finalized application acceptance system and started making types shared across front and backend
This commit is contained in:
@@ -59,9 +59,13 @@ async function onSubmit(val: any) {
|
||||
|
||||
onMounted(() => {
|
||||
if (props.data !== null) {
|
||||
initialValues.value = { ...props.data }
|
||||
const parsed = typeof props.data === "string"
|
||||
? JSON.parse(props.data)
|
||||
: props.data;
|
||||
|
||||
initialValues.value = { ...parsed };
|
||||
} else {
|
||||
initialValues.value = { ...fallbackInitials }
|
||||
initialValues.value = { ...fallbackInitials };
|
||||
}
|
||||
})
|
||||
|
||||
@@ -76,8 +80,7 @@ onMounted(() => {
|
||||
<FormItem>
|
||||
<FormLabel>What is your date of birth?</FormLabel>
|
||||
<FormControl>
|
||||
<DateInput :model-value="(value as string) ?? ''" :disabled="readOnly"
|
||||
@update:model-value="handleChange" />
|
||||
<DateInput :model-value="(value as string) ?? ''" :disabled="readOnly" @update:model-value="handleChange" />
|
||||
</FormControl>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
|
||||
Reference in New Issue
Block a user