Merge commit 'a7d4cd28f2cdf884c3379bea4700d290781032da' into fanpeng

This commit is contained in:
范鹏 2024-12-02 10:26:45 +08:00
commit ddb35d32f9

View File

@ -1681,6 +1681,7 @@ export const useStarCloudStore = defineStore('starCloud', {
} }
const lockList = getStorage('starLockList') const lockList = getStorage('starLockList')
if (lockList[this.accountInfo.uid]) {
const index = lockList[this.accountInfo.uid].findIndex( const index = lockList[this.accountInfo.uid].findIndex(
item => item.lockId === this.lockInfo.lockId item => item.lockId === this.lockInfo.lockId
) )
@ -1688,6 +1689,7 @@ export const useStarCloudStore = defineStore('starCloud', {
lockList[this.accountInfo.uid][index] = this.lockInfo lockList[this.accountInfo.uid][index] = this.lockInfo
} }
setStorage('starLockList', lockList) setStorage('starLockList', lockList)
}
}, },
// 特征值变化回调 // 特征值变化回调
listenCharacteristicValue(res) { listenCharacteristicValue(res) {