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

h5的编译配置中设置publicPath和router的basename,跳转页面时,例如A->B->C,在C页面点击返回,路由地址是B页面的地址,但是显示的内容却是A页面的内容,配置为空时就能正常返回 #10616

Closed
lhkg1988 opened this issue Nov 9, 2021 · 3 comments · Fixed by #10658
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Milestone

Comments

@lhkg1988
Copy link

lhkg1988 commented Nov 9, 2021

相关平台

H5

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

复现步骤

浏览器访问:https://mobile-stage.gaojihealth.cn/benefitapp/pages/main/index?channelId=o2owxh5hy&token=qWR2TL04o12J0swNxPJaXeJo%2FgGcHNbYY550YW8RZqvSXViem7%2B7WHeFJMgIY5PIZjmtUeYol1g%3D

期望结果

期望能正常返回

实际结果

跳转页面时,例如A->B->C,在C页面点击返回,路由地址是B页面的地址,但是显示的内容却是A页面的内容

环境信息

👽 Taro v3.3.10


  Taro CLI 3.3.10 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.6 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.10 - D:\User\hliu\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Nov 9, 2021
@lhkg1988
Copy link
Author

lhkg1988 commented Nov 9, 2021

加了basename就不行,点返回页面显示就乱了

@luckyadam
Copy link
Member

加了basename就不行,点返回页面显示就乱了

升级到最新版本看看行不行

@lhkg1988
Copy link
Author

加了basename就不行,点返回页面显示就乱了

升级到最新版本看看行不行

刚试了,也不行

@Chen-jj Chen-jj added this to the 3.3.15 milestone Nov 22, 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

Successfully merging a pull request may close this issue.

4 participants