fix: recaptcha race condition (#1176)

pull/1186/head
WeidiDeng 2020-12-08 18:26:29 +08:00 committed by GitHub
parent c746c1931d
commit ac3673e111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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 () {