Git Product home page Git Product logo

Comments (5)

lei-mu avatar lei-mu commented on May 18, 2024

精度丢失这个问题我也很头疼,这个目前没有设计这个api,只能让后端 转成字符串。

临时解决方案:
或者改一下源码,把源码里对 response 的 JSON.parse 代码注释,等待后续版本支持。

image

或者你可以试试(我没有试过):
你把你精度丢失那个请求的dataType 设置成null试试,我没有试过。

from luch-request.

hanyucd avatar hanyucd commented on May 18, 2024

@lei-mu 我试过了,还是没用。在 axios 中有个 transformResponse,luch-request 中有类似的没?
image

image

from luch-request.

hanyucd avatar hanyucd commented on May 18, 2024

@lei-mu 改源码的话注释JSON.parse ,主要我项目是 vue-cli 脚手架搭建的项目,npm install 的 luch-request。每次都要修改源码了。

对了修改源码的话,JSON.parse 在哪个位置呢,哥?

from luch-request.

lei-mu avatar lei-mu commented on May 18, 2024

image

from luch-request.

hanyucd avatar hanyucd commented on May 18, 2024

@lei-mu
哥,你有比较完美的解决方案的时候,说声哈。

from luch-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.