From 50a119b2196a95bed50343104caea8445bef874d Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Tue, 24 Jun 2025 01:39:27 +0800 Subject: [PATCH] 111111111 --- LTEMvcApp/Views/Home/Logs.cshtml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/LTEMvcApp/Views/Home/Logs.cshtml b/LTEMvcApp/Views/Home/Logs.cshtml index a6f2ca7..06ab598 100644 --- a/LTEMvcApp/Views/Home/Logs.cshtml +++ b/LTEMvcApp/Views/Home/Logs.cshtml @@ -539,6 +539,7 @@ +
@@ -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;