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

页面跳转携带参数问题 #10784

Closed
whiteGreat opened this issue Nov 30, 2021 · 3 comments
Closed

页面跳转携带参数问题 #10784

whiteGreat opened this issue Nov 30, 2021 · 3 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@whiteGreat
Copy link

相关平台

H5

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

复现步骤

A页面跳转B页面
Taro.navigateTo({
url: pages/index/b?query=123
})
B页面路由为正常显示:http://localhost:10086/#/pages/index/b?query=123
重点:
B页面跳转至C页面时query=123依然存在
Taro.navigateTo({
url: pages/index/c
})
结果:http://localhost:10086/#/pages/index/c?query=123

期望结果

当我跳转时在没有携带参数的情况下正常显示
http://localhost:10086/#/pages/index/c

实际结果

http://localhost:10086/#/pages/index/c?query=123

环境信息

👽 Taro v3.3.10

mode: undefined  TARO_ENV: undefined
APP_BASE_URL=https://yapi.ishopex.cn/mock/1310

  Taro CLI 3.3.10 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node
      Yarn: 1.22.17 - ~/.nvm/versions/node/v14.16.0/bin/yarn
      npm: 6.14.11 - ~/.nvm/versions/node/v14.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.10 => 3.3.10
      @tarojs/components: 3.3.10 => 3.3.10
      @tarojs/mini-runner: 3.3.10 => 3.3.10
      @tarojs/react: 3.3.10 => 3.3.10
      @tarojs/runtime: 3.3.10 => 3.3.10
      @tarojs/taro: 3.3.10 => 3.3.10
      @tarojs/webpack-runner: 3.3.10 => 3.3.10
      babel-preset-taro: 3.3.10 => 3.3.10
      eslint-config-taro: 3.3.10 => 3.3.10
      react: ^17.0.0 => 17.0.2
      taro-ui: ^3.0.0-alpha.10 => 3.0.0-alpha.10
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Nov 30, 2021
@huhuanqing
Copy link

怎么解决的,我也是这种问题,除非加上1秒的延迟

@ZakaryCode
Copy link
Contributor

升级到 3.3.15+ 可以解决该问题

@ZakaryCode
Copy link
Contributor

怎么解决的,我也是这种问题,除非加上1秒的延迟

这不是同一个问题,但在 3.3.15+ 中同样修复

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
Development

No branches or pull requests

3 participants