mirror of https://github.com/1Panel-dev/1Panel
fix: 增加终端连接断开提示信息 (#1571)
parent
10427ddd65
commit
afcebb46a0
|
@ -184,6 +184,7 @@ const closeRealTerminal = (ev: CloseEvent) => {
|
|||
if (heartbeatTimer.value) {
|
||||
clearInterval(heartbeatTimer.value);
|
||||
}
|
||||
term.value.write('The connection has been disconnected.');
|
||||
term.value.write(ev.reason);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue