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