u
This commit is contained in:
1 parent
35951777b0
commit
63f1d4d1dc
39 files changed
+880
-133
No files matched your search
@@ -1,18 +1,15 @@
|
||||
<script setup>
|
||||
import { onBeforeUnmount, onMounted } from 'vue'
|
||||
import { onBeforeUnmount } from 'vue'
|
||||
import Layout from '@/layout/index.vue'
|
||||
import { useWebSocket } from './stores/websocketStore'
|
||||
|
||||
const websocket = useWebSocket()
|
||||
|
||||
onMounted(() => {
|
||||
websocket.connect('ws://127.0.0.1:8090/ws')
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
websocket.disconnect()
|
||||
// websocket.disconnect()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<RouterView />
|
||||
<Layout />
|
||||
</template>
|
||||
Reference in new issue
Block a user