@tarojs/plugin-http post请求不传递data会塞入空对象

4dc9hkyq  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(67)

相关平台

微信小程序

小程序基础库: 3.0.1
使用框架: Vue 3

复现步骤

直接看源码即可 评论放图

期望结果

功能正常

实际结果

post请求data未传值 会带给后端空对象

环境信息

Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

  Taro CLI 3.4.10 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 14.18.3 - ~/.nvm/versions/node/v16.13.0/bin/node
      Yarn: 1.22.17 - /usr/local/bin/yarn
      npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
    npmPackages:
      @tarojs/cli: ^3.5.6 => 3.6.15
      @tarojs/components: ^3.5.6 => 3.6.15
      @tarojs/mini-runner: ^3.5.6 => 3.6.15
      @tarojs/plugin-framework-react: ^3.5.6 => 3.6.15
      @tarojs/react: ^3.5.6 => 3.6.15
      @tarojs/runtime: ^3.5.6 => 3.6.15
      @tarojs/taro: ^3.5.6 => 3.6.15
      @tarojs/webpack-runner: ^3.5.6 => 3.6.15
      babel-preset-taro: ^3.5.6 => 3.6.15
      eslint-config-taro: ^3.5.6 => 3.6.15
      react: ^17.0.0 => 17.0.2 
    npmGlobalPackages:
      typescript: 5.1.6

相关问题