Taro 3.6.29 navigateTo url 带参数,跳转报错
shushu2013 opened this issue · 3 comments
shushu2013 commented
相关平台
H5
浏览器版本: chrome 124
使用框架: React
复现步骤
- 不带参数,可以正常跳转
Taro.navigateTo({
url: '/pages/test/index'
})
- 带了参数,跳转就报错
Taro.navigateTo({
url: '/pages/test/index?test=123'
})
应该是这里导致的 bug
https://github.com/NervJS/taro/pull/15658/files#r1597331887
期望结果
正常跳转
实际结果
跳转报错
环境信息
👽 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 commented
我也出现了,taro版本:3.2.1,chrome版本:123,使用的vue3
17760799271 commented
哦,taro版本错了,是3.6.18
17760799271 commented
已修复,"@tarojs/router": "^3.6.30"