去掉bgUrl的设定

This commit is contained in:
2026-05-16 14:18:33 +08:00
parent 0aef7d0ad5
commit f9b0b05c7e
5 changed files with 0 additions and 42 deletions
-13
View File
@@ -9,7 +9,6 @@ import { CaptchaConfig, wrapConfig, wrapStyle } from "./config/config";
import { clearAllPreventDefault } from "./common/common";
const template = `
<div class="__captcha-parent">
<div class="captcha-bg-img"></div>
<div class="captcha-box">
<div class="captcha-loading loading"></div>
</div>
@@ -57,7 +56,6 @@ class TianAiCaptcha {
this.config.domBindEl.append(template);
this.domTemplate = this.config.domBindEl.find(".__captcha-parent");
clearAllPreventDefault(this.domTemplate);
this.loadStyle();
// 绑定按钮事件
this.config.domBindEl
.find(".refresh-btn")
@@ -98,17 +96,6 @@ class TianAiCaptcha {
.css("display", "none");
}
loadStyle() {
// 设置样式
const bgUrl = this.style.bgUrl;
if (bgUrl) {
// 背景图片
this.config.domBindEl
.find(".captcha-bg-img")
.css("background-image", "url(" + bgUrl + ")");
}
}
destroyWindow() {
if (this.C) {
this.C.destroy();