16 lines
282 B
Vue
16 lines
282 B
Vue
<script setup>
|
|
import { onBeforeUnmount } from 'vue'
|
|
import Layout from '@/layout/index.vue'
|
|
import { useWebSocket } from './stores/websocketStore'
|
|
|
|
const websocket = useWebSocket()
|
|
|
|
onBeforeUnmount(() => {
|
|
websocket.disconnect()
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Layout />
|
|
</template>
|