Commit 20b5facc authored by liuzheng712's avatar liuzheng712

fix(webterminal): data

parent f7eda41a
......@@ -85,7 +85,7 @@ function openTerminal(options) {
term.write('Connection Reset By Peer');
};
sock.onmessage= function (data) {
term.write(data.data.data);
term.write(JSON.parse(data.data)['data']);
};
sock.onerror= function () {
term.write('Connection Reset By Peer');
......
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