通过if判断,选择跳转的小程序首页
在app.js里写
onLaunch: function () {
if (这里写你想要写的判断条件) {
wx.reLaunch({
url: '../../pages/game/game',
})
console.log('去game页面')
} else {
wx.reLaunch({
url: '../../pages/index/index',
})
console.log('去index页面');
}
}
判断、选择跳转的小程序首页
最新推荐文章于 2023-10-08 15:18:23 发布