From 2926e46351d2db0d986103cec00c233dcdb6c2ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Tue, 9 Jan 2024 21:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81:=20=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/fanInfo/FanInfo.vue | 2 +- src/views/debug/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)