This commit is contained in:
oneao committed 2025-10-13 17:32:02 +08:00
1 parent a6c5e70f85
commit 2598098876
8 files changed
+646 -45

No files matched your search

+12
View File
@@ -1,4 +1,16 @@
<script setup>
import { onBeforeUnmount, onMounted } from 'vue'
import { useWebSocket } from './stores/websocketStore'
const websocket = useWebSocket()
onMounted(() => {
websocket.connect('ws://192.168.1.136:8090/ws')
})
onBeforeUnmount(() => {
websocket.disconnect()
})
</script>
<template>