mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 11:10:11 +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
@@ -10,12 +10,12 @@
|
||||
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue'
|
||||
import socketTerminal from '../utils/terminal'
|
||||
import sessionManager from '../utils/session'
|
||||
|
||||
const terminal = ref(null)
|
||||
|
||||
onMounted(() => {
|
||||
socketTerminal.mount(terminal.value)
|
||||
window.addEventListener('resize', () => socketTerminal.resizeScreen())
|
||||
sessionManager.term.mount(terminal.value)
|
||||
window.addEventListener('resize', () => sessionManager.term.resizeScreen())
|
||||
})
|
||||
</script>
|
||||
Reference in new issue
Block a user