m***@outlook.com
m***@outlook.com
  • 发布:2023-05-30 00:43
  • 更新:2023-05-30 00:43
  • 阅读:615

uniapp开发的项目打包成apk后onLaunch无法跳转啊

分类:uni-app
onLaunch: function() {  
setTimeout(() => {  
                uni.reLaunch({  
                    url: 'pages/Login/Login',  
                    fail: (err) => {  
                        uni.showModal({  
                            content: "跳转失败1:" + JSON.stringify(err)  
                        })  
                    },  
                    success: (e) => {  
                        uni.showModal({  
                            content: "跳转成功2"  
                        })  
                    }  
                })  
    }, 300)  
}

试了uni.reLaunch,redirectTo,switchTab(白屏)均无效。
但是我把应用的 存储权限取消就又有效了,勾上又失效。 真的郁闷至极。

2023-05-30 00:43 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复