h***@163.com
h***@163.com
  • 发布:2019-03-29 11:34
  • 更新:2019-03-29 17:37
  • 阅读:1984

登录后跳转到tabbar页面onLoad方法的部分执行???

分类:uni-app

登录跳转代码:
if(res.data.status == 1){
console.log(res)
uni.setStorageSync('login_key','0')
until.loadUserInfo()
uni.switchTab({
url : '../../../home/home'
})
}
home页onLoad方法:
onLoad:function(option) {
console.log(uni.getStorageSync('userinfo'))
console.log('执行首页onLoad方法')
this.loadData()
},

非常困惑的是执行this.loadData()方法却不执行上面两个console,另外,下一步点击我的(tabbar页面)的onLoad方法全都不执行

2019-03-29 11:34 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com

艾格丽吴波

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