1
1
<script setup lang="ts">
2
- import { useForm } from ' vee-validate'
3
- import { toTypedSchema } from ' @vee-validate/zod'
4
- import * as z from ' zod'
2
+ import { Button } from ' @/components/ui/button'
5
3
import { Card , CardContent , CardDescription , CardHeader , CardTitle } from ' @/components/ui/card'
4
+ import { Multiselect } from ' @/components/ui/multiselect'
6
5
import { Select , SelectContent , SelectItem , SelectTrigger , SelectValue } from ' @/components/ui/select'
7
- import { Button } from ' @/components/ui/button'
8
- import type { AllClubs } from ' ~/types/api/user/all_clubs'
9
- import Calendar from ' ~/components/ui/calendar/Calendar.vue'
10
- import { cn } from ' ~/lib/utils'
11
6
import { Textarea } from ' @/components/ui/textarea'
12
7
import { useToast } from ' @/components/ui/toast/use-toast'
8
+ import { toTypedSchema } from ' @vee-validate/zod'
9
+ import { useForm } from ' vee-validate'
10
+ import * as z from ' zod'
11
+ import Calendar from ' ~/components/ui/calendar/Calendar.vue'
13
12
import { Toaster } from ' ~/components/ui/toast'
14
- import { Multiselect } from ' @/components/ui/multiselect'
13
+ import { cn } from ' ~/lib/utils'
14
+ import type { AllClubs } from ' ~/types/api/user/all_clubs'
15
15
16
16
const emit = defineEmits ([' refresh' ])
17
17
@@ -33,7 +33,6 @@ const formSchema = toTypedSchema(z.object({
33
33
}))
34
34
35
35
const { data } = await useAsyncData <AllClubs >(' allClubs' , () => {
36
- // @ts-expect-error TS2321
37
36
return $fetch (' /api/user/all_clubs?includeMemberships=true' , {
38
37
headers: useRequestHeaders (),
39
38
method: ' GET' ,
@@ -145,7 +144,7 @@ const onSubmit = handleSubmit(async (values) => {
145
144
<FormControl >
146
145
<Textarea
147
146
class =" resize-none"
148
- placeholder =" 请假原因 ,最多一百字..."
147
+ placeholder =" 详细记录 ,最多一百字..."
149
148
v-bind =" componentField"
150
149
:disabled =" isLoading"
151
150
/>
0 commit comments