mirror of
https://github.com/ddCat-main/cursor-auto-register.git
synced 2025-12-24 13:38:01 +08:00
fix:修复token复制bug
This commit is contained in:
@@ -307,6 +307,7 @@
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>邮箱</th>
|
||||
<th>密码</th>
|
||||
<th>TOKEN</th>
|
||||
|
||||
@@ -2447,22 +2447,6 @@ function bindModalEvents() {
|
||||
// 延迟调用清理,避免与Bootstrap自身的处理冲突
|
||||
setTimeout(() => cleanupModalBackdrops(), 50);
|
||||
});
|
||||
|
||||
// 监听复制Token按钮 - 使用节流处理
|
||||
$('#copyTokenBtn')
|
||||
.off('click')
|
||||
.on(
|
||||
'click',
|
||||
throttle(function () {
|
||||
const token = $('#tokenFullText').val();
|
||||
if (token) {
|
||||
copyToClipboard(token);
|
||||
showAlert('Token已复制到剪贴板', 'success');
|
||||
} else {
|
||||
showAlert('没有Token可复制', 'warning');
|
||||
}
|
||||
}, 300)
|
||||
);
|
||||
}
|
||||
|
||||
// 验证码请求检查
|
||||
|
||||
Reference in New Issue
Block a user