File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <vue-recaptcha theme =" dark" :size =" screenWidth < 768 ? 'compact' : 'normal'" :sitekey =" captchakey" @verify =" handleSuccess" @error =" handleError" v-if =" captchakey" ></vue-recaptcha >
2
+ <vue-recaptcha theme =" dark" :size =" screenWidth < 768 ? 'compact' : 'normal'" :sitekey =" captchakey" @verify =" handleSuccess" @error =" handleError" v-if =" captchakey && store.isVisible " ></vue-recaptcha >
3
3
</template >
4
4
5
5
<script setup lang="ts">
6
6
import { useWindowSize } from ' @vueuse/core'
7
-
7
+ import { useFaucetDetail } from ' @/stores/faucetDetail '
8
8
type Props = {
9
9
captchakey: string | undefined
10
10
}
11
11
defineProps <Props >()
12
12
13
13
const emit = defineEmits ([' validation' ])
14
+ const store = useFaucetDetail ()
14
15
15
16
const { width : screenWidth } = useWindowSize ()
16
17
You can’t perform that action at this time.
0 commit comments