Commit 9265d38c authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 12e806fe
......@@ -106,7 +106,7 @@ function login() {
port=$("#port").val();
password=$("#password").val();
username=$("#username").val();
var es = new EventSource("http://"+ip+":"+port+"/api/msg?username="+username+"password="+password);
var es = new EventSource("http://"+ip+":"+port+"/api/msg?username="+username+"&password="+password);
es.onmessage = function(e) {
var data_li = $('<li>'+ e.data +'</li>');
data_li.appendTo($("#output"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment