-
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
h5 从非tabbar页面回跳到tabbar页面,点击浏览器返回按钮页面白屏 #12455
Comments
我也是 用tabBar白屏 是因为外层的.taro-page 的display:none 没有删除 不知道怎么解决 |
可尝试升级版本修复该问题 |
请问要升级到什么版本? |
这个问题目前修复了吗 我看还是open状态 |
老哥解决了吗这个 |
没解决,我升级到了3.4.x的最新版本还是不行,没试升到3.5行不行,因为升3.5改动会比较大 |
抱歉 工作没用这个邮箱才看到 ***@***.***/router":"2.2.14",希望对你有帮助
…------------------ 原始邮件 ------------------
发件人: "NervJS/taro" ***@***.***>;
发送时间: 2022年9月20日(星期二) 下午5:37
***@***.***>;
***@***.******@***.***>;
主题: Re: [NervJS/taro] h5 从非tabbar页面回跳到tabbar页面,点击浏览器返回按钮页面白屏 (Issue #12455)
可尝试升级版本修复该问题
要升级到什么版本?
老哥解决了吗这个
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
switchTab 不能移除浏览器路由栈直接返回到上一次展示的路由页面,这是由于浏览器自身规则限制不可能修复,请规避该逻辑。
升级 3.5 实际并不会有特别大变动,遵循升级指南就可以规避,如果希望和 3.4 一致,也可以选择关闭 prebundle 等特性。 |
相关平台
H5
复现仓库
https://github.com/bluescurry/taro-debug
浏览器版本: Chrome 104.0.5112.101
使用框架: React
复现步骤
期望结果
直接从商品页返回首页
实际结果
又打开了一个首页地址,点浏览器返回就返回到了上一个首页,并且白屏了
环境信息
补充信息
从商品页返回首页是通过 switchTab 跳转的,就会有问题,通过 navigateBack 回跳是可以的,但是这种做法在小程序是不行的,会报错,tabbar 页面只能通过 switchTab 跳转。
这里有录屏:
The text was updated successfully, but these errors were encountered: