From 1e7adda734fc786145222c3bb25a22704a88e1ac Mon Sep 17 00:00:00 2001 From: Liuyf Date: Thu, 27 Mar 2025 13:54:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=93=8D=E4=BD=9C=E6=9B=B4so=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=8F=90=E7=A4=BA=E6=9B=B4=E6=96=B0=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=EF=BC=8C=E6=97=A0=E7=BD=91=E7=BB=9C=E3=80=81=E6=97=A0=E8=93=9D?= =?UTF-8?q?=E7=89=99=E5=BA=94=E6=9C=89=E7=9B=B8=E5=BA=94=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/motorTorsion/motorTorsion.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/motorTorsion/motorTorsion.vue b/pages/motorTorsion/motorTorsion.vue index 0b58f74..f620cf4 100644 --- a/pages/motorTorsion/motorTorsion.vue +++ b/pages/motorTorsion/motorTorsion.vue @@ -54,7 +54,9 @@ import { updateLockSettingRequest } from '@/api/setting' import { useBluetoothStore } from '@/stores/bluetooth' import { useUserStore } from '@/stores/user' + import { useBasicStore } from '../../stores/basic' + const $basic = useBasicStore() const $bluetooth = useBluetoothStore() const $user = useUserStore() @@ -67,6 +69,10 @@ }) const updateValue = async val => { + const netWork = await $basic.getNetworkType() + if (!netWork) { + return + } if (pending.value || value.value === val) return pending.value = true uni.showLoading({ @@ -81,6 +87,7 @@ withParams: true }) $bluetooth.closeBluetoothConnection() + console.log('code-', code) if (code === 0) { const { code, message } = await updateLockSettingRequest({ lockId: $bluetooth.currentLockInfo.lockId,