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 3.6.29 navigateTo url 带参数,跳转报错 #15721

Closed
shushu2013 opened this issue May 14, 2024 · 3 comments
Closed

Taro 3.6.29 navigateTo url 带参数,跳转报错 #15721

shushu2013 opened this issue May 14, 2024 · 3 comments

Comments

@shushu2013
Copy link
Contributor

shushu2013 commented May 14, 2024

相关平台

H5

浏览器版本: chrome 124
使用框架: React

复现步骤

  1. 不带参数,可以正常跳转
Taro.navigateTo({
  url: '/pages/test/index'
})
  1. 带了参数,跳转就报错
Taro.navigateTo({
  url: '/pages/test/index?test=123'
})

应该是这里导致的 bug
https://github.com/NervJS/taro/pull/15658/files#r1597331887

企业微信截图_0befd9b1-10c4-49e2-8e21-bff3b457fd77

期望结果

正常跳转

实际结果

跳转报错

环境信息

👽 Taro v3.6.29


  Taro CLI 3.6.29 environment info:
    System:
      OS: macOS 12.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.0/bin/yarn
      npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.29 => 3.6.29 
      @tarojs/components: 3.6.29 => 3.6.29 
      @tarojs/helper: 3.6.29 => 3.6.29 
      @tarojs/mini-runner: 3.6.29 => 3.6.29 
      @tarojs/plugin-framework-react: 3.6.29 => 3.6.29 
      @tarojs/plugin-html: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-alipay: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-h5: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-jd: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-qq: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-swan: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-tt: 3.6.29 => 3.6.29 
      @tarojs/plugin-platform-weapp: 3.6.29 => 3.6.29 
      @tarojs/react: 3.6.29 => 3.6.29 
      @tarojs/runtime: 3.6.29 => 3.6.29 
      @tarojs/shared: 3.6.29 => 3.6.29 
      @tarojs/taro: 3.6.29 => 3.6.29 
      @tarojs/webpack-runner: 3.6.29 => 3.6.29 
      babel-preset-taro: 3.6.29 => 3.6.29 
      eslint-config-taro: 3.6.29 => 3.6.29 
      react: ^18.0.0 => 18.0.0 
    npmGlobalPackages:
      typescript: 5.0.4
@17760799271
Copy link

我也出现了,taro版本:3.2.1,chrome版本:123,使用的vue3

@17760799271
Copy link

哦,taro版本错了,是3.6.18

@17760799271
Copy link

已修复,"@tarojs/router": "^3.6.30"

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

No branches or pull requests

4 participants