|
@ -1385,6 +1385,8 @@ |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var connectionStatusBtn = document.getElementById('connectionStatusBtn'); |
|
|
|
|
|
if (connectionStatusBtn) { |
|
|
connectionStatusBtn.addEventListener('click', function() { |
|
|
connectionStatusBtn.addEventListener('click', function() { |
|
|
fetch('/api/log/connection-status') |
|
|
fetch('/api/log/connection-status') |
|
|
.then(response => response.json()) |
|
|
.then(response => response.json()) |
|
@ -1396,6 +1398,7 @@ |
|
|
showError('获取连接状态失败: ' + error.message); |
|
|
showError('获取连接状态失败: ' + error.message); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
testConnectionBtn.addEventListener('click', function() { |
|
|
testConnectionBtn.addEventListener('click', function() { |
|
|
fetch('/api/log/test-connection') |
|
|
fetch('/api/log/test-connection') |
|
|