This commit is contained in:
Baobhan Sith
2025-05-13 10:24:02 +08:00
parent ee8659ae73
commit fea90fb6ab
10 changed files with 1 additions and 27 deletions
@@ -90,7 +90,6 @@ export function createSshTerminalManager(sessionId: string, wsDeps: SshTerminalD
console.log(`[SSH ${sessionId}] handleTerminalResize called with:`, dimensions);
// 只有在连接状态下才发送 resize 命令给后端
if (isConnected.value) {
console.log(`[SSH ${sessionId}] Sending ssh:resize to backend:`, dimensions);
sendMessage({ type: 'ssh:resize', sessionId, payload: dimensions });
} else {
console.log(`[SSH ${sessionId}] WebSocket not connected, skipping ssh:resize.`);