mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
refactor: centralize all variable to sessionManager
This commit is contained in:
1 parent
5a7c4da628
commit
9c3c6adb16
6 files changed
+56
-39
No files matched your search
@@ -30,13 +30,9 @@
|
||||
|
||||
<script setup>
|
||||
import sessionManager from '../utils/session'
|
||||
import socket from '../utils/socket'
|
||||
import socketTerminal from '../utils/terminal'
|
||||
|
||||
const reset = async () => {
|
||||
console.log('resetting...')
|
||||
await sessionManager.createSession()
|
||||
socket.connect(sessionManager.getSession())
|
||||
socketTerminal.clear()
|
||||
}
|
||||
</script>
|
||||
Reference in new issue
Block a user