2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 10:37:14 +08:00

fix: ssh连接成功后即立即调整窗口大小

This commit is contained in:
耗子
2025-02-28 16:04:20 +08:00
parent f6ad6b23cb
commit b90227017c

View File

@@ -151,7 +151,7 @@ const openSession = async (id: number) => {
})
term.value.open(terminal.value!)
fitAddon.fit()
onResize()
term.value.focus()
window.addEventListener('resize', onResize, false)
current.value = id