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'
5
- import { useClerk } from ' vue-clerk'
6
- import { useToast } from ' @/components/ui/toast/use-toast'
7
- import Toaster from ' @/components/ui/toast/Toaster.vue'
8
- import { FormControl , FormField , FormItem , FormLabel , FormMessage } from ' @/components/ui/form'
9
2
import {
10
3
AlertDialog ,
11
4
AlertDialogAction ,
@@ -17,6 +10,14 @@ import {
17
10
AlertDialogTitle ,
18
11
AlertDialogTrigger ,
19
12
} from ' @/components/ui/alert-dialog'
13
+ import { FormControl , FormField , FormItem , FormLabel , FormMessage } from ' @/components/ui/form'
14
+ import { Skeleton } from ' @/components/ui/skeleton'
15
+ import Toaster from ' @/components/ui/toast/Toaster.vue'
16
+ import { useToast } from ' @/components/ui/toast/use-toast'
17
+ import { toTypedSchema } from ' @vee-validate/zod'
18
+ import { useForm } from ' vee-validate'
19
+ import { useClerk } from ' vue-clerk'
20
+ import * as z from ' zod'
20
21
21
22
const clerk = useClerk ()
22
23
@@ -181,7 +182,8 @@ const submitConfirm = async function () {
181
182
:disabled =" isLoading" auto-correct =" off" class =" mt-1" placeholder =" 四位验证码" type =" text"
182
183
v-bind =" componentField"
183
184
/>
184
- <img :src =" `data:image/jpeg;base64, ${initData?.img}`" alt =" captcha" class =" rounded my-1" >
185
+ <img v-if =" initData?.img" :src =" `data:image/jpeg;base64, ${initData?.img}`" alt =" captcha" class =" rounded my-1" >
186
+ <Skeleton v-else class =" rounded my-1 w-[80px]" />
185
187
</div >
186
188
</FormControl >
187
189
<FormMessage />
0 commit comments