[AI Generated]: feat(*): 完善数据页切换成员、首页接口对接及我的页缓存信息展示
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user