We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序
https://codepen.io/lastSeries/pen/vYGxYRK 小程序基础库: 2.12.1 使用框架: React
npm run build:weapp
k1=v1&k2=v2&k3=v3
{"postData":{"k1":"v1","k2":"v2","k3":"v3"}}
Taro CLI 3.0.5 environment info: System: OS: macOS 10.15.6 Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm npmPackages: @tarojs/components: 3.0.5 => 3.0.5 @tarojs/mini-runner: 3.0.5 => 3.0.5 @tarojs/react: 3.0.5 => 3.0.5 @tarojs/runtime: 3.0.5 => 3.0.5 @tarojs/taro: 3.0.5 => 3.0.5 @tarojs/webpack-runner: 3.0.5 => 3.0.5 babel-preset-taro: 3.0.5 => 3.0.5 eslint-config-taro: 3.0.5 => 3.0.5 react: ^16.10.0 => 16.13.1 npmGlobalPackages: typescript: 3.5.2
The text was updated successfully, but these errors were encountered:
@lastSeries 是 taro-axios 这个包依赖的 axios 的版本的问题。
taro-axios
axios
axios 里使用 data.toString() === '[object PostData]' 去判断是否是一个 PostData 对象,但压缩后 PostData 类名被压缩了,导致判断失败:
data.toString() === '[object PostData]'
PostData
可以升级 axios 版本再试试。
Sorry, something went wrong.
No branches or pull requests
相关平台
微信小程序
复现仓库
https://codepen.io/lastSeries/pen/vYGxYRK
小程序基础库: 2.12.1
使用框架: React
复现步骤
npm run build:weapp
期望结果
k1=v1&k2=v2&k3=v3
实际结果
{"postData":{"k1":"v1","k2":"v2","k3":"v3"}}
环境信息
The text was updated successfully, but these errors were encountered: