fix(device): 设备列表卡片间距优化,连接缓存简化 userInfo 存储
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
d373da11c7
commit
d4ab21ca6f
@@ -168,16 +168,7 @@ Page({
|
||||
wx.setStorageSync('connectDeviceInfo', matched.raw)
|
||||
// 连接成功后缓存当前设备关联的用户信息
|
||||
if (userInfo) {
|
||||
wx.setStorageSync('userInfo', {
|
||||
userId: userInfo.userId,
|
||||
realname: userInfo.realname,
|
||||
sex: userInfo.sex,
|
||||
height: userInfo.height,
|
||||
birthday: userInfo.birthday,
|
||||
avatar: userInfo.avatar,
|
||||
relationType: userInfo.relationType,
|
||||
sex_dictText: userInfo.sex_dictText,
|
||||
})
|
||||
wx.setStorageSync('userInfo', userInfo)
|
||||
}
|
||||
})
|
||||
lefuService.onDeviceInfo((info) => {
|
||||
|
||||
Reference in New Issue
Block a user