diff --git a/App.uvue b/App.uvue index 07c3d3e2..57f62580 100644 --- a/App.uvue +++ b/App.uvue @@ -22,7 +22,15 @@ if (session.user != null) { console.log('已有有效会话,恢复登录状态') setIsLoggedIn(true) + // #ifdef H5 uni.reLaunch({ url: '/pages/mall/admin/homePage/index' }) + // #endif + // #ifdef MP-WEIXIN + uni.reLaunch({ url: '/pages/mall/merchant/index' }) + // #endif + // #ifndef H5 || MP-WEIXIN + uni.reLaunch({ url: '/pages/mall/admin/homePage/index' }) + // #endif return } @@ -34,7 +42,15 @@ if (profile != null) { console.log('会话恢复成功') setIsLoggedIn(true) + // #ifdef H5 uni.reLaunch({ url: '/pages/mall/admin/homePage/index' }) + // #endif + // #ifdef MP-WEIXIN + uni.reLaunch({ url: '/pages/mall/merchant/index' }) + // #endif + // #ifndef H5 || MP-WEIXIN + uni.reLaunch({ url: '/pages/mall/admin/homePage/index' }) + // #endif } }).catch(() => { console.log('会话恢复失败,需要重新登录') @@ -49,10 +65,11 @@