解决合并代码后的报错问题
This commit is contained in:
4
App.uvue
4
App.uvue
@@ -22,7 +22,7 @@
|
||||
if (session.user != null) {
|
||||
console.log('已有有效会话,恢复登录状态')
|
||||
setIsLoggedIn(true)
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/mall/admin/homePage/index' })
|
||||
return
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
if (profile != null) {
|
||||
console.log('会话恢复成功')
|
||||
setIsLoggedIn(true)
|
||||
uni.reLaunch({ url: '/pages/mall/consumer/index' })
|
||||
uni.reLaunch({ url: '/pages/mall/admin/homePage/index' })
|
||||
}
|
||||
}).catch(() => {
|
||||
console.log('会话恢复失败,需要重新登录')
|
||||
|
||||
Reference in New Issue
Block a user