修改测试用例

This commit is contained in:
guanj
2025-07-29 08:33:04 +08:00
parent d53b9df52f
commit 24c590478e
26 changed files with 880 additions and 235 deletions

View File

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