mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: connect frontend terminal to terminal service
fix: use ReconnectWebSocket to make the connection more stable fix: typescript error on importing css in vue
This commit is contained in:
1 parent
9c9456693d
commit
c7e6d31b9c
12 files changed
+84
-9
No files matched your search
@@ -50,8 +50,12 @@ const useSession = defineStore('session', {
|
||||
...session,
|
||||
graph: new FileGraph(session.graph),
|
||||
pwd: '/home/commander',
|
||||
containerName: session.containerName || '',
|
||||
}
|
||||
term.reset()
|
||||
term.connect(
|
||||
`/terminal/${session.containerName}/ws?token=${session.token}`
|
||||
)
|
||||
await socket.connect(this.session)
|
||||
term.focus()
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user