diff --git a/assets/image_20260713161303056.png b/assets/image_20260713161303056.png new file mode 100644 index 0000000..4d55ec6 Binary files /dev/null and b/assets/image_20260713161303056.png differ diff --git a/public/static/js/common.js b/public/static/js/common.js index 34f49ee..9bc381f 100644 --- a/public/static/js/common.js +++ b/public/static/js/common.js @@ -1,3 +1,19 @@ +// 全局错误处理,防止JavaScript错误中断执行 +window.onerror = function(msg, url, line, col, error) { + console.error('JavaScript错误:', msg, 'at', url, 'line:', line); + return true; // 阻止错误传播 +}; + +let editingConfigId = null; +let allFields = []; +let currentPage = 1; +let pageSize = 10; +let currentEntityType = ''; +let currentSearch = ''; +let entityPage = 1; +let entityPageSize = 20; +let selectedEntityIds = new Set(); + async function loadConfigs() { try { const response = await fetch('/api/config');