[AI Generated]: feat(*): 完善数据页切换成员、首页接口对接及我的页缓存信息展示

This commit is contained in:
17792275749
2026-05-15 17:29:37 +08:00
parent 24d3677415
commit 69ad8358ae
5 changed files with 22 additions and 22 deletions
+6 -6
View File
@@ -65,13 +65,13 @@ Page({
wx.setStorageSync('userInfo', result.user)
/* 上次连接设备不为空对象则直接进首页 */
// const connectDeviceInfo = result.user?.connectDeviceInfo
// if (connectDeviceInfo && connectDeviceInfo !== '{}') {
// wx.setStorageSync('connectDeviceInfo', JSON.parse(connectDeviceInfo))
// wx.reLaunch({ url: '/pages/home/home' })
// } else {
const connectDeviceInfo = result.user?.connectDeviceInfo
if (connectDeviceInfo && connectDeviceInfo !== '{}') {
wx.setStorageSync('connectDeviceInfo', JSON.parse(connectDeviceInfo))
wx.reLaunch({ url: '/pages/home/home' })
} else {
wx.reLaunch({ url: '/pages/connectedDevice/connectedDevice' })
// }
}
})
.catch(() => {
this.setData({ loading: false })