fix:修复token复制bug

This commit is contained in:
ddCat
2025-04-03 14:02:07 +08:00
parent 7ba675cd98
commit 5ba10588bb
2 changed files with 1 additions and 16 deletions

View File

@@ -307,6 +307,7 @@
<table class="table table-hover align-middle mb-0">
<thead>
<tr>
<th>序号</th>
<th>邮箱</th>
<th>密码</th>
<th>TOKEN</th>

View File

@@ -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)
);
}
// 验证码请求检查