mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
修正验证码关闭后元素未定义问题
This commit is contained in:
parent
cd1567191b
commit
f965670df1
@ -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 () {
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user