fix: 修复配置管理页面一直显示加载中的问题

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
This commit is contained in:
user9994793890
2026-07-13 14:22:12 +08:00
parent 29390043b2
commit f02648a9b5
2 changed files with 10 additions and 0 deletions

View File

@@ -2174,6 +2174,16 @@
resultDiv.innerHTML = html;
}
// 批量下载历史记录
async function batchDownloadHistory() {
const checkboxes = document.querySelectorAll('.history-checkbox:checked');
if (checkboxes.length === 0) {
alert('请至少选择一条记录');
return;
}
const ids = Array.from(checkboxes).map(cb => parseInt(cb.value));
// 逐个下载
ids.forEach(id => {
window.open(`/api/download?id=${id}`, '_blank');