parsajiravand / vue-client-recaptcha

Build simple recaptcha for vuejs without server need
https://vue-client-recaptcha.netlify.app/usage/
MIT License
23 stars 2 forks source link

Cannot get return value. #9

Closed okywijaya closed 2 years ago

okywijaya commented 2 years ago

Thank you, for your tutorial. But I get problem cannot get the return value from checkValidCaptha. I need the return value for methods button @click.

parsajiravand commented 2 years ago

Hi my freind

I create sample with Option API and Compositon API in vue3 you can see and simply just call getCodeFunction. if still you have problem please share your code here . https://codesandbox.io/s/sample-get-code-vue-client-recaptcha-k19kks

okywijaya commented 2 years ago

This is my simple code :

image

image

alirezamosadeghseo commented 2 years ago

گیت هاب رویت شد .

On Sat, Sep 3, 2022 at 2:02 AM parsajiravand @.***> wrote:

Hi my freind

I create sample with Option API and Compositon API in vue3 you can see and simply just call getCodeFunction. if still you have problem please share your code here . https://codesandbox.io/s/sample-get-code-vue-client-recaptcha-k19kks

— Reply to this email directly, view it on GitHub https://github.com/parsajiravand/vue-client-recaptcha/issues/9#issuecomment-1236056397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYZDTXBH33CU5JAU6PDAFE3V4LSYTANCNFSM6AAAAAAQDWOFV4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

parsajiravand commented 2 years ago

your problem is usign OptionAPI and ComositionAPI together, you can,t access setup functions in your methods with THIS please send code in .vue file i fixing your problem

@okywijaya

okywijaya commented 2 years ago

This is my simple code Sir @parsajiravand,

parsajiravand commented 2 years ago

This code is currect you can copy

@okywijaya

https://codesandbox.io/s/sample-get-code-vue-client-recaptcha-k19kks?file=/src/components/SampleOnSaveWithOptionAPI.vue

okywijaya commented 2 years ago

Alhamdulillah, Jazakallahu khair Sir @parsajiravand. May Allah Subhanahu Wa Taala, revenge you with alot of goodnes.