From e9b1ea1d7d7337f864c9dfba8fd170cfe744d792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Wed, 4 Sep 2024 14:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A6=E6=BB=91=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 6a45b75..b24d3a2 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -17,14 +17,17 @@ 填加锁时,手机必须在锁旁边 - + {{group.groupName}} - + @@ -148,8 +151,10 @@ ...mapActions(useBluetoothStore, ['getBluetoothStatus', 'initAndListenBluetooth', 'updateCurrentLockInfo', 'checkSetting', 'updateKeyId', 'resetDevice']), ...mapActions(useBasicStore, ['routeJump', 'getDeviceInfo']), - async deleteLock(lock) { + async deleteLock(lock, groupIndex, lockIndex) { const that = this + + that.$refs['swipeItem' + groupIndex][lockIndex].closeHandler() if(lock.userType !== 110301 && lock.keyRight === 1) { this.deleteLockInfo = lock this.showModal = true