[AI Generated]: feat(*): 新增 OpenID 登录流程及启动自动跳转逻辑
This commit is contained in:
@@ -9,5 +9,15 @@ App<IAppOption>({
|
||||
onLaunch() {
|
||||
// 初始化乐福蓝牙 SDK
|
||||
lefuService.init()
|
||||
|
||||
// 已登录则跳过登录页
|
||||
const userInfo = wx.getStorageSync('userInfo')
|
||||
if (userInfo) {
|
||||
const connectDeviceInfo = wx.getStorageSync('connectDeviceInfo')
|
||||
const hasDevice = connectDeviceInfo && Object.keys(connectDeviceInfo).length > 0
|
||||
wx.reLaunch({
|
||||
url: hasDevice ? '/pages/home/home' : '/pages/connectedDevice/connectedDevice'
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user