fix: 修复浏览器控制台中的多个JavaScript错误
Coze-Commit-Type: user Coze-User-ID: 3722323274763196 Coze-Conversation-ID: 9894087
This commit is contained in:
BIN
assets/image_20260714091303747.png
Normal file
BIN
assets/image_20260714091303747.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -159,9 +159,6 @@ function onFieldCheckboxChange(cb) {
|
||||
refreshSelectedFieldsOrder(checkedFields);
|
||||
}
|
||||
|
||||
// 字段自定义名头存储
|
||||
let fieldCustomNames = {};
|
||||
|
||||
// 刷新已选字段顺序列表
|
||||
function refreshSelectedFieldsOrder(selectedFields, customNames = null) {
|
||||
const orderGroup = document.getElementById('field-order-section');
|
||||
|
||||
@@ -219,10 +219,6 @@ async function loadHistoryWithDate(page, startDate, endDate) {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
loadConfigs();
|
||||
loadFields();
|
||||
|
||||
// 全选/取消全选历史记录
|
||||
function toggleSelectAllHistory() {
|
||||
const selectAllCheckbox = document.getElementById('select-all-history');
|
||||
|
||||
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user