Giter Site home page Giter Site logo

Comments (3)

WangXang avatar WangXang commented on June 27, 2024 2

Thanks, when capacchachaLoaded is loaded, recaptcha can be used, but for the user, this is not a good experience. Because it takes a long time to load (of course it depends on the network environment used)
#######################
components:
beforeMount(){
this.$store.commit('showLoadingByGobal',true)
this.body_status = false
this.$recaptchaLoaded().then(() => {
this.$recaptcha("login").then(
(token) => {
this.recaptchatoken = token
console.log("GooGle Token:"+token)
this.initDetail() // real request and get data
}
)
})
}
######################

from vue-recaptcha-v3.

WipeAir avatar WipeAir commented on June 27, 2024 1

Hey,
this is actually intended, to wait until the reCAPTCHA is fully loaded you can use the
$recaptchaLoaded() function (See here). It will return a Promise which will be resolved as soon as reCAPTCHA is loaded.
I'll add a full example on how to use it to the readme soon.

from vue-recaptcha-v3.

WipeAir avatar WipeAir commented on June 27, 2024

That's true, but this behavoir is fully dependent on Google.

from vue-recaptcha-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.