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

[Taro Next rc3] H5 端 无法跳转同一页面(参数不同) #6612

Closed
charmtiger opened this issue Jun 9, 2020 · 6 comments
Closed
Assignees
Milestone

Comments

@charmtiger
Copy link

问题描述

H5 端 无法跳转参数不同的同一页面

表现
动图

复现步骤

https://github.com/charmtiger/taro-test

期望行为

与小程序路由保持一致

系统信息

Taro CLI 3.0.0-alpha.7 environment info:
System:
OS: macOS 10.15.4
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
Yarn: 1.22.4 - ~/.config/yarn/global/node_modules/.bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
npmPackages:
@tarojs/components: 3.0.0-rc.3 => 3.0.0-rc.3
@tarojs/taro: 3.0.0-rc.3 => 3.0.0-rc.3
@tarojs/webpack-runner: 3.0.0-rc.3 => 3.0.0-rc.3
eslint-config-taro: 3.0.0-rc.3 => 3.0.0-rc.3
react: ^16.10.0 => 16.13.1

@liusure
Copy link

liusure commented Jun 9, 2020

遇到同样的问题,除了componentWillMount、componentDidMount以外的生命周期内获取不到Current.router.params

@charmtiger
Copy link
Author

@liusure 我的问题主要是 无法跳转

@liusure
Copy link

liusure commented Jun 9, 2020

@liusure 我的问题主要是 无法跳转
直接根据新的参数渲染页面就好了

@charmtiger
Copy link
Author

我需要历史记录的,而且 yuche 说设计上是要与小程序保持一致的

@liusure
Copy link

liusure commented Jun 9, 2020

确实,这部分我也遇到了问题。

@kala888
Copy link
Contributor

kala888 commented Jun 15, 2020

自己跳转自己可用redirectTo获取的路由变化。
我的问题是A-B-A这时候怎么处理,url变化是对的,有没有方法能监听到path变化?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants