修复电子钥匙更新bug
This commit is contained in:
parent
7cd011cc9d
commit
9a70aaaff7
@ -187,7 +187,10 @@
|
||||
getKeyRequest({
|
||||
keyId: info.value.keyId
|
||||
}).then(res => {
|
||||
info.value = res.data
|
||||
info.value = {
|
||||
...res.data,
|
||||
keyId: info.value.keyId
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user