diff --git a/src/components/content/fanInfo/FanInfo.vue b/src/components/content/fanInfo/FanInfo.vue index 304a382..dd3b667 100644 --- a/src/components/content/fanInfo/FanInfo.vue +++ b/src/components/content/fanInfo/FanInfo.vue @@ -134,7 +134,7 @@ watch(() => props.fanData, (now) => { getBasicData(now.frequencyChangerList) }, {deep: true}); watch(() => props.list, (now) => { - socketData.value.forEach(item => { + socketData.value?.forEach(item => { now.forEach(newItem => { if (item.equipmentId === newItem.equipmentId) { if (newItem.frequencyFeedback) { diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index 6ada50e..b75cad6 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -74,7 +74,7 @@ const handleSend = () => { dataList.value.push(data) } const initWebSocket = () => { - // let wsUrl = `ws://192.168.31.175:9000/websocket/equipment/${token}/${serialNumber.value}` + // let wsUrl = `ws://192.168.31.175:9000/websocket/debug/${token}/${serialNumber.value}` let wsUrl = `ws://web-tunnel.feashow.com/api/wstunnel/websocket/debug/${token}/${serialNumber.value}` console.log(wsUrl) socket = new WebSocket(wsUrl)