From cc5cb34b1898965995df277be189b76bca8c9b4f Mon Sep 17 00:00:00 2001 From: houjunxiang Date: Sat, 17 Jan 2026 13:58:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A4=A9=E5=B9=B3=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E9=87=8A=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/analysis/sample/sample-work-detail.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/analysis/sample/sample-work-detail.vue b/pages/analysis/sample/sample-work-detail.vue index 2859075..3431887 100644 --- a/pages/analysis/sample/sample-work-detail.vue +++ b/pages/analysis/sample/sample-work-detail.vue @@ -1053,11 +1053,7 @@ const listenDeviceData = () => { uni.$on('deviceData', res => { switch (res.deviceType) { case 'balance': - console.log(res.deviceId) - if (currentAuncel.value.id === res.deviceId) { - console.log(res) - currentAuncel.value.weightData = res.weightData currentAuncel.value.weightUnit = res.weightUnit currentAuncel.value.weightStable = res.weightStable @@ -1084,7 +1080,7 @@ const listenDeviceData = () => { }) //控制设备状态 uni.$on('controlDevice', res => { - if (currentAuncel.value.id === res.deviceId) { + if (currentAuncel.value.id === res.deviceId && !res.isControl) { currentAuncel.value.id = '' currentAuncel.value.name = '' currentAuncel.value.code = ''