修改现场测试问题

This commit is contained in:
GGJ
2025-01-03 12:45:54 +08:00
parent 6a06652532
commit 3094ac94c0
24 changed files with 249 additions and 97 deletions

View File

@@ -18,7 +18,7 @@ let buildUrl = 'wss://pqmcn.com:8087/mqtt'//102
const fetchMqttUrl = async () => {
const response = await fetch('/')
const mqttUrl = response.headers.get('X-MQTT-URL')
const mqttUrl = response.headers.get('X-Mqtt-Url')
window.localStorage.setItem('MQTTURL', mqttUrl || buildUrl)