修改云南测试用例

This commit is contained in:
guanj
2025-07-29 19:00:54 +08:00
parent 24c590478e
commit cc47d9b02c
22 changed files with 531 additions and 302 deletions

View File

@@ -44,11 +44,9 @@ export default class SocketService {
return
}
const response = await fetch('/')
const WebSocketUrl = response.headers.get('X-WebSocket-Url')
setTimeout(() => {
// ws://192.168.1.69:10407/mgtt/api/pushMessage/
const url = (WebSocketUrl || 'ws://192.168.1.68:10407/api/pushMessage/') + id
const url = (localStorage.getItem('WebSocketUrl') || 'ws://192.168.1.68:10407/api/pushMessage/') + id
this.ws = new WebSocket(url)
this.ws.onopen = () => this.handleOpen()