-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Taro 2.2.11]switchTab 跳转到对应tabBar 页面为空 #7164
Comments
我也这样,怎么解决,就H5有 |
@mengtianren @taozidada 能否提供一个简单的 demo 看下~ |
|
同,路由变化,页面display还是none |
@ZakaryCode 在什么版本发布呢? |
下一个 patch 版本发布 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
**浏览器版本: Chrome **
使用框架: React
复现步骤
login登录之后 switchTab 跳转到 首页 页面为空 需要刷新
期望结果
从非tabbar页面switchTab 跳转到tabbar页面可以显示页面
实际结果
h5模式下路由发生变化,但是页面为空
环境信息
补充信息
app.js config配置项
config = {
pages: [
"pages/login",
"pages/home/index",
...
],
window: {
...
},
tabBar: {
list: [
{
pagePath: "pages/home/index",
text: "首页",
iconPath: "./static/image/tabBar/home.png",
selectedIconPath: "./static/image/tabBar/home_1.png"
},
...
],
color: "#333",
selectedColor: "#06BF89",
backgroundColor: "#fdfdfd",
borderStyle: "black"
}
};
login.js
Taro.switchTab({
url: "/pages/home/index"
})
The text was updated successfully, but these errors were encountered: