File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed
Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1919 site_key: { type: String , required: true },
2020 })
2121
22+ onMounted (() => {
23+ if (import .meta.client) {
24+ if (
25+ process .env .NODE_ENV !== "production " ||
26+ !infra_store .app_mode !== appMode .appMode .CLOUD
27+ ) {
28+ infra_store .$patch ({ is_captcha_validated : true })
29+ }
30+ }
31+ })
2232 async function submit_recaptcha (token ) {
2333 try {
2434 const response = await $fetch .raw (
Original file line number Diff line number Diff line change 11import { useStorage } from "@vueuse/core"
22import Status from "@ogw_f/utils/status.js"
3- import getCaptchaState from "@ogw_f/utils/captcha_state.js"
43
54export const use_infra_store = defineStore ( "infra" , {
65 state : ( ) => ( {
76 app_mode : getAppMode ( ) ,
87 ID : useStorage ( "ID" , "" ) ,
9- is_captcha_validated : getCaptchaState ( ) ,
8+ is_captcha_validated : false ,
109 status : Status . NOT_CREATED ,
1110 } ) ,
1211 getters : {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments