|
|
@ -539,6 +539,7 @@ |
|
|
|
<button class="btn-small" id="reconnect-btn" title="重新连接">重连</button> |
|
|
|
<button class="btn-small" id="debug-btn" title="调试信息">调试</button> |
|
|
|
<button class="btn-small" id="test-connection-btn" title="测试连接">测试连接</button> |
|
|
|
<button class="btn-small" id="force-push-btn" title="强制推送">强制推送</button> |
|
|
|
<div class="column-settings"> |
|
|
|
<button class="btn-small" id="column-settings-btn" title="列设置">列设置</button> |
|
|
|
<div class="column-settings-dropdown" id="column-settings-dropdown"> |
|
|
@ -624,6 +625,7 @@ |
|
|
|
const reconnectBtn = document.getElementById('reconnect-btn'); |
|
|
|
const debugBtn = document.getElementById('debug-btn'); |
|
|
|
const testConnectionBtn = document.getElementById('test-connection-btn'); |
|
|
|
const forcePushBtn = document.getElementById('force-push-btn'); |
|
|
|
const logListPanel = document.querySelector('.log-list-panel'); |
|
|
|
const resizer = document.getElementById('drag-resizer'); |
|
|
|
const layerFilterOptions = document.getElementById('layer-filter-options'); |
|
|
@ -1329,6 +1331,20 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
forcePushBtn.addEventListener('click', function() { |
|
|
|
// 强制推送 |
|
|
|
fetch('/api/websocket/logs/force-push-test', { method: 'POST' }) |
|
|
|
.then(response => response.json()) |
|
|
|
.then(data => { |
|
|
|
if (data.message) { |
|
|
|
showInfo(data.message); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
showError('强制推送失败: ' + error.message); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
// --- Resizer Logic --- |
|
|
|
let isResizing = false; |
|
|
|
|
|
|
|