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;