Skip to content

Commit 48ad73f

Browse files
fix(recaptcha): client_only
1 parent 68bf4ad commit 48ad73f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

components/Recaptcha.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<template>
2-
<vue-recaptcha
3-
ref="recaptcha"
4-
:sitekey="site_key"
5-
:loadRecaptchaScript="true"
6-
@expired="is_captcha_validated = false"
7-
@verify="submit_recaptcha"
8-
align-self="center"
9-
/>
2+
<ClientOnly>
3+
<vue-recaptcha
4+
ref="recaptcha"
5+
:sitekey="site_key"
6+
:loadRecaptchaScript="true"
7+
@expired="is_captcha_validated = false"
8+
@verify="submit_recaptcha"
9+
align-self="center"
10+
/>
11+
</ClientOnly>
1012
</template>
1113

1214
<script setup>
1315
import { VueRecaptcha } from "vue-recaptcha"
1416
15-
const websocket_store = use_websocket_store()
1617
const cloud_store = use_cloud_store()
1718
const { is_captcha_validated } = storeToRefs(cloud_store)
1819

0 commit comments

Comments
 (0)