Skip to content
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

配置basename后tabbar有时显示有时不显示 #9935

Closed
ghost opened this issue Jul 30, 2021 · 4 comments
Closed

配置basename后tabbar有时显示有时不显示 #9935

ghost opened this issue Jul 30, 2021 · 4 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Milestone

Comments

@ghost
Copy link

ghost commented Jul 30, 2021

相关平台

H5

**浏览器版本: Chrome 92.0.4515.107 **
使用框架: React

复现步骤

basename配置为/m 时刷新页面有一定几率出现
basename配置为/时正常

期望结果

有配置tabbar的页面稳定出现tabbar

实际结果

tabbar有几率不出现

环境信息

  Taro CLI 3.3.1 environment info:
    System:
      OS: macOS 11.4
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.18.1 - ~/.nvm/versions/node/v12.18.1/bin/node
      Yarn: 1.22.10 - ~/.nvm/versions/node/v12.18.1/bin/yarn
      npm: 6.14.5 - ~/.nvm/versions/node/v12.18.1/bin/npm
    npmPackages:
      @tarojs/components: 3.2.12 => 3.2.12 
      @tarojs/mini-runner: 3.2.12 => 3.2.12 
      @tarojs/react: 3.2.12 => 3.2.12 
      @tarojs/runtime: 3.2.12 => 3.2.12 
      @tarojs/taro: 3.2.12 => 3.2.12 
      @tarojs/webpack-runner: 3.2.12 => 3.2.12 
      babel-preset-taro: 3.2.12 => 3.2.12 
      eslint-config-taro: 3.2.12 => 3.2.12 
      react: ^17.0.0 => 17.0.2 
    npmGlobalPackages:
      typescript: 4.2.4
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 30, 2021
@ghost
Copy link
Author

ghost commented Aug 19, 2021

在app.config中添加basename配置可以解决这个问题,但是与官方文档的配置不一样

tabBar: {
basename: "/m",
...
},

@beysong
Copy link

beysong commented Oct 27, 2021

在app.config中添加basename配置可以解决这个问题,但是与官方文档的配置不一样

tabBar: { basename: "/m", ... },

没有用吧,有问题,闪一下又消失了

@Chen-jj
Copy link
Contributor

Chen-jj commented Oct 27, 2021

duplicate #9392

@Chen-jj Chen-jj added this to the 3.3.12 milestone Oct 27, 2021
@Chen-jj
Copy link
Contributor

Chen-jj commented Oct 27, 2021

3.3.12 修复

@Chen-jj Chen-jj closed this as completed Oct 27, 2021
@ZakaryCode ZakaryCode added this to Done in H5 Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
H5
  
Done
Development

No branches or pull requests

2 participants