mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
🚸 优化 Terminal 连接健壮性、输入缓存
This commit is contained in:
@@ -48,6 +48,11 @@
|
||||
onResize()
|
||||
}
|
||||
|
||||
socket.onclose = () => {
|
||||
alert('Terminal 连接超时或会话已结束')
|
||||
window.close()
|
||||
}
|
||||
|
||||
socket.onerror = () => {
|
||||
alert('Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user