详细问题描述
H5 tabbar页面跳转其他页面错误,刷新单独页面没有问题,
从其他页点到tabbar页,然后跳转其他非tabbar页面(我跳转的是登录页)报错:[system] redirectTo:fail can not redirectTo a tabbar page。
运行到APP没有问题。
[内容]
重现步骤
[步骤]
1:首页正常,点击需求,tabbar页面内跳转登录页
2:再点击订单,报错:[system] redirectTo:fail can not redirectTo a tabbar page
[结果]
[system] redirectTo:fail can not redirectTo a tabbar page
[期望]
正常跳转登录页面
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
HBuilderX
[IDE版本号]
2.1.1.20190716
uni-app运行环境说明
[运行端是h5或app或某个小程序?]
H5
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
HBuilderX创建
[编译模式是老模板模式还是新的自定义组件模式?]
自定义组件模式
[App安装包或H5地址]
[可重现代码片段]
onLoad (e) {
if (!this.hasLogin) {
uni.redirectTo({
url:'/pages/login/login'
})
} else {
this.getList();
}
}
联系方式
[QQ]
527576254