mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +00:00
🚸 优化 Terminal 连接健壮性、输入缓存
This commit is contained in:
1 parent
1f0791fc0e
commit
77a89f62cd
2 files changed
+65
-18
No files matched your search
@@ -48,6 +48,11 @@
|
||||
onResize()
|
||||
}
|
||||
|
||||
socket.onclose = () => {
|
||||
alert('Terminal 连接超时或会话已结束')
|
||||
window.close()
|
||||
}
|
||||
|
||||
socket.onerror = () => {
|
||||
alert('Terminal 连接失败,请检查 /terminal/* 的 WebSocket 反代情况')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user