We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
浏览器版本: Chrome 62 使用框架: React
设置 h5 router为:
{ mode: 'browser', basename: '/xxx', }
路由会变成 /xxx/pages/index/index 导致与tarBar配置不一致,从而无法显示tarBar,而app.config.ts 文件 又无法为H5环境特殊配置。
/xxx/pages/index/index
app.config.ts
有个方案解决配置H5的basename后 tarBar 配置不需要变更也显示。
tarBar内pagePath需要设置为 /xxx/pages/index/index 这种,才显示
Taro CLI 3.2.8 environment info: System: OS: Windows 10 Binaries: Node: 12.18.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
我遇到的问题是配置了mode: 'browser'后,h5打包后白屏,啥都不显示,开发环境是正常的
fix(h5): 修复配置了 basename 时 Tabbar 不显示的问题,fix #9392
c8fb48e
4a34602
Successfully merging a pull request may close this issue.
相关平台
H5
浏览器版本: Chrome 62
使用框架: React
复现步骤
设置 h5 router为:
路由会变成
/xxx/pages/index/index
导致与tarBar配置不一致,从而无法显示tarBar,而app.config.ts
文件 又无法为H5环境特殊配置。期望结果
有个方案解决配置H5的basename后 tarBar 配置不需要变更也显示。
实际结果
tarBar内pagePath需要设置为
/xxx/pages/index/index
这种,才显示环境信息
The text was updated successfully, but these errors were encountered: