Skip to content

Commit 74efcb7

Browse files
committed
fix: multi faucet captcha
1 parent 1507954 commit 74efcb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/ui/Recaptcha.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<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>
33
</template>
44

55
<script setup lang="ts">
66
import { useWindowSize } from '@vueuse/core'
7-
7+
import { useFaucetDetail } from '@/stores/faucetDetail'
88
type Props = {
99
captchakey: string | undefined
1010
}
1111
defineProps<Props>()
1212
1313
const emit = defineEmits(['validation'])
14+
const store = useFaucetDetail()
1415
1516
const { width: screenWidth } = useWindowSize()
1617

0 commit comments

Comments
 (0)