mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update webssh.js
This commit is contained in:
@@ -12,7 +12,10 @@ function web_shell2() {
|
||||
|
||||
socket.on('server_response', function (data) {
|
||||
term.write(data.data);
|
||||
if (req_str == '\r\n登出\r\n' || req_str == '登出\r\n' || req_str == '\r\nlogout\r\n' || req_str == 'logout\r\n') {
|
||||
if (data.data == '\r\n登出\r\n' ||
|
||||
data.data == '登出\r\n' ||
|
||||
data.data == '\r\nlogout\r\n' ||
|
||||
data.data == 'logout\r\n') {
|
||||
setTimeout(function () {
|
||||
layer.closeAll();
|
||||
term.destroy();
|
||||
|
||||
Reference in New Issue
Block a user