Giter VIP home page Giter VIP logo

Comments (4)

superman66 avatar superman66 commented on July 17, 2024

后端都返回401了,为啥 error.response 为 undefined。
错误原因不够明显。建议打断点,输出整个 error 对象。
还有,你提问的时候,代码能格式化一下吗?虽然是我自己写的代码,但看起来也老费劲了。

from vue-axios-github.

gbbyuluo avatar gbbyuluo commented on July 17, 2024

我这是这种问题,error打印出来是network error

from vue-axios-github.

superman66 avatar superman66 commented on July 17, 2024

network error 应该是网络问题啊。
而且 error.response 没值的话,我觉得你应该找后端,让其接口返回值

from vue-axios-github.

superman66 avatar superman66 commented on July 17, 2024

@gbbyuluo @c89 如果没有问题的话,我把 issue 关了。有问题的话,你们再开启吧。

from vue-axios-github.

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.