fix: recaptcha race condition (#1176)

This commit is contained in:
WeidiDeng authored and GitHub committed 2020-12-08 11:26:29 +01:00
1 parent c746c1931d
commit ac3673e111
1 file changed
+4 -2
+4 -2
View File
@@ -41,8 +41,10 @@ export default {
mounted () {
if (!recaptcha) return
window.grecaptcha.render('recaptcha', {
sitekey: recaptchaKey
window.grecaptcha.ready(function () {
window.grecaptcha.render('recaptcha', {
sitekey: recaptchaKey
})
})
},
methods: {