fix: recaptcha race condition (#1176)
parent
c746c1931d
commit
ac3673e111
|
@ -41,9 +41,11 @@ export default {
|
||||||
mounted () {
|
mounted () {
|
||||||
if (!recaptcha) return
|
if (!recaptcha) return
|
||||||
|
|
||||||
|
window.grecaptcha.ready(function () {
|
||||||
window.grecaptcha.render('recaptcha', {
|
window.grecaptcha.render('recaptcha', {
|
||||||
sitekey: recaptchaKey
|
sitekey: recaptchaKey
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggleMode () {
|
toggleMode () {
|
||||||
|
|
Loading…
Reference in New Issue