1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

修正验证码关闭后元素未定义问题

This commit is contained in:
koogua 2022-03-23 09:44:35 +08:00
parent cd1567191b
commit f965670df1

View File

@ -2,6 +2,7 @@ layui.use(['jquery'], function () {
var $ = layui.jquery;
if ($('#captcha-btn').length > 0) {
var captcha = new TencentCaptcha(
$('#captcha-btn')[0],
$('#captcha-btn').data('app-id'),
@ -14,5 +15,6 @@ layui.use(['jquery'], function () {
}
}
);
}
});