修复电子钥匙更新bug

This commit is contained in:
范鹏 2025-02-14 14:24:02 +08:00
parent 7cd011cc9d
commit 9a70aaaff7
2 changed files with 8 additions and 2 deletions

View File

@ -187,7 +187,10 @@
getKeyRequest({
keyId: info.value.keyId
}).then(res => {
info.value = res.data
info.value = {
...res.data,
keyId: info.value.keyId
}
})
}
}

View File

@ -199,7 +199,10 @@
lockId: $bluetooth.currentLockInfo.lockId,
keyId: $lock.currentKeyInfo.keyId
}).then(res => {
$lock.updateCurrentKeyInfo(res.data)
$lock.updateCurrentKeyInfo({
...res.data,
keyId: $lock.currentKeyInfo.keyId
})
})
}
}