fix: 修复星云sdk更新锁信息bug
This commit is contained in:
parent
a888ce7415
commit
a7d4cd28f2
14
starCloud.js
14
starCloud.js
@ -1681,13 +1681,15 @@ export const useStarCloudStore = defineStore('starCloud', {
|
||||
}
|
||||
|
||||
const lockList = getStorage('starLockList')
|
||||
const index = lockList[this.accountInfo.uid].findIndex(
|
||||
item => item.lockId === this.lockInfo.lockId
|
||||
)
|
||||
if (index !== -1) {
|
||||
lockList[this.accountInfo.uid][index] = this.lockInfo
|
||||
if (lockList[this.accountInfo.uid]) {
|
||||
const index = lockList[this.accountInfo.uid].findIndex(
|
||||
item => item.lockId === this.lockInfo.lockId
|
||||
)
|
||||
if (index !== -1) {
|
||||
lockList[this.accountInfo.uid][index] = this.lockInfo
|
||||
}
|
||||
setStorage('starLockList', lockList)
|
||||
}
|
||||
setStorage('starLockList', lockList)
|
||||
},
|
||||
// 特征值变化回调
|
||||
listenCharacteristicValue(res) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user