提交代码

This commit is contained in:
guanj
2026-04-25 15:21:53 +08:00
parent 0f5cb1d3c5
commit 120892808b
8 changed files with 45 additions and 39 deletions

View File

@@ -98,9 +98,10 @@ const dataSocket = reactive({
// }
// }
const socket = async () => {
// const url = localStorage.getItem('WebSocketUrl3') || 'ws://192.168.2.130:10203/event/'
const url = 'ws://192.168.2.130:10203/event/'
console.log('🚀 ~ socket ~ url:', url)
const url = localStorage.getItem('WebSocketUrl3') || 'null' //'ws://192.168.2.130:10203/event/'
// const url = 'ws://192.168.1.68:10203/event/'
await dataSocket.socketServe.connect(`${url}${adminInfo.id}`)
@@ -130,7 +131,10 @@ onMounted(() => {
// const msg = JSON.parse(message.toString())
// console.log(msg)
// })
socket()
setTimeout(() => {
socket()
}, 3000)
})
defineExpose({
open,