-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.$recaptcha is not a function" #3
Comments
Hey, |
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) |
That's true, but this behavoir is fully dependent on Google. |
error: this.$recaptcha is not a function"
index.js:
############################
import Vue from 'vue'
import { sync } from 'vuex-router-sync'
// store
import store from "./store.js"
......
import { VueReCaptcha } from "vue-recaptcha-v3"
Vue.use(VueReCaptcha,{siteKey:"6LdwmHcUAAAAAH2jppzD3vcK3f7Rr8H7Krm1-TMg"})
############################
components:
this.$recaptcha("login").then((token) => {
console.log("谷歌Token:"+ token)
})
The text was updated successfully, but these errors were encountered: