fix: 修复浏览器控制台中的多个JavaScript错误

Coze-Commit-Type: user
Coze-User-ID: 3722323274763196
Coze-Conversation-ID: 9894087
This commit is contained in:
user9994793890
2026-07-14 09:15:45 +08:00
parent ef49b89558
commit d3c72f9dca
4 changed files with 1 additions and 8 deletions

View File

@@ -159,9 +159,6 @@ function onFieldCheckboxChange(cb) {
refreshSelectedFieldsOrder(checkedFields);
}
// 字段自定义名头存储
let fieldCustomNames = {};
// 刷新已选字段顺序列表
function refreshSelectedFieldsOrder(selectedFields, customNames = null) {
const orderGroup = document.getElementById('field-order-section');

View File

@@ -219,10 +219,6 @@ async function loadHistoryWithDate(page, startDate, endDate) {
}
}
// 初始化
loadConfigs();
loadFields();
// 全选/取消全选历史记录
function toggleSelectAllHistory() {
const selectAllCheckbox = document.getElementById('select-all-history');

View File

@@ -5,7 +5,7 @@ async function loadGenerateConfigs() {
const result = await response.json();
if (result.success) {
const container = document.getElementById('config-checkbox-list');
const container = document.getElementById('generate-config-list');
container.innerHTML = result.data.map(c => `
<label style="display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer;">
<input type="checkbox" class="config-checkbox" value="${c.id}" data-name="${c.config_name}">