fix: 修复AttachAddon会将数据以raw形式重复发送的问题

This commit is contained in:
Wankko Ree 2023-04-05 23:32:22 +08:00 committed by zhengkunwang223
parent 12beef49b5
commit 57a6417812

View file

@ -135,7 +135,7 @@ const initTerm = () => {
);
}
});
term.value.loadAddon(new AttachAddon(terminalSocket.value));
term.value.loadAddon(new AttachAddon(terminalSocket.value, { bidirectional: false }));
term.value.loadAddon(fitAddon);
termReady.value = true;
}