mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: add Vite proxy, change terminal to other channel
This commit is contained in:
1 parent
c3e735b627
commit
c248004484
5 files changed
+11
-8
No files matched your search
@@ -55,11 +55,11 @@ onMounted(() => {
|
||||
term.open(terminal.value)
|
||||
term.focus()
|
||||
resizeScreen()
|
||||
socket.on('message', (message) => {
|
||||
socket.on('terminal', (message) => {
|
||||
term.write(message)
|
||||
})
|
||||
term.onData((key) => {
|
||||
socket.send(key)
|
||||
socket.emit('terminal', key)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
Reference in new issue
Block a user