fix build errors
This commit is contained in:
parent
8c39ca3599
commit
2a9915a727
7 changed files with 18 additions and 20 deletions
|
|
@ -223,7 +223,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, watch } from 'vue'
|
||||
import { ref, computed } from 'vue'
|
||||
import { useForm } from 'vee-validate'
|
||||
import { toTypedSchema } from '@vee-validate/zod'
|
||||
import * as z from 'zod'
|
||||
|
|
@ -254,8 +254,8 @@ interface Emits {
|
|||
const emit = defineEmits<Emits>()
|
||||
|
||||
// Services
|
||||
const authService = injectService(SERVICE_TOKENS.AUTH_SERVICE)
|
||||
const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB)
|
||||
const authService = injectService(SERVICE_TOKENS.AUTH_SERVICE) as any
|
||||
const relayHub = injectService(SERVICE_TOKENS.RELAY_HUB) as any
|
||||
const toast = useToast()
|
||||
|
||||
// Form schema
|
||||
|
|
@ -280,7 +280,7 @@ const rideshareSchema = toTypedSchema(z.object({
|
|||
const form = useForm({
|
||||
validationSchema: rideshareSchema,
|
||||
initialValues: {
|
||||
type: '',
|
||||
type: undefined as 'offering' | 'seeking' | undefined,
|
||||
fromLocation: '',
|
||||
toLocation: '',
|
||||
date: '',
|
||||
|
|
@ -292,7 +292,7 @@ const form = useForm({
|
|||
}
|
||||
})
|
||||
|
||||
const { values, meta, setFieldValue, resetForm } = form
|
||||
const { values, meta, resetForm } = form
|
||||
const isFormValid = computed(() => meta.value.valid)
|
||||
|
||||
// State
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue