Giter VIP home page Giter VIP logo

Comments (6)

chenjsh36 avatar chenjsh36 commented on August 21, 2024

umi-request 目前针对 requestType 为 'form' 时,通过 qs.stringify 对 options.data 进行处理,

  1. qs.stringify 本身确实不支持三级对象,后续将修复掉;
    2.数组转化格式目前使用的是 stringify(data, { arrayFormat: 'repeat', strictNullHandling: true }) 模式,后续会允许开发者自行决定转化的格式;
  2. json字符串,自动转成对象这个正在验证中;

umi-request 的请求类型处理目前确实只针对了 requestType 为 form、json 时做转化处理,针对其他 requestType 则是让用户能根据自己的需求自行定制,requestType 后续可以逐步丰富各中请求类型,也欢迎场景需求的输入

from umi-request.

world56 avatar world56 commented on August 21, 2024

请问现在解决这个问题了吗?

from umi-request.

okool avatar okool commented on August 21, 2024

from umi-request.

acsamson avatar acsamson commented on August 21, 2024

这个问题还没解决吗?替代方案是什么?

from umi-request.

iambool avatar iambool commented on August 21, 2024
  1. 三级对象

三级对象还没有解决吗?

from umi-request.

iambool avatar iambool commented on August 21, 2024

这个问题还没解决吗?替代方案是什么?

对于多级对象或数组丢失的问题,我这边是把post的数据放到URLSearchParams对象中了,可以临时解决

from umi-request.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.