diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index d32e33b53..1ab600565 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -109,7 +109,7 @@ {{ post.remote_ip }} {{ post.login_type }} 统计 - 监控 + 监控 {{ post.start_time|date:"Y-m-d H:i:s" }} @@ -138,8 +138,9 @@ var endpoint = protocol + document.URL.match(RegExp('//(.*?)/'))[1] + '/ws/monitor'; var monitorid = obj.attr('monitor-id'); - var socket = new WebSocket(endpoint + '?id=' + monitorid); - + var file_path = obj.attr('file_path'); +{# var socket = new WebSocket(endpoint + '?id=' + monitorid);#} + var socket = new WebSocket(endpoint + '?file_path=' + file_path); var term = new Terminal({ cols: 80, rows: 24,