The fetch tuner interface is returned, but the front end cannot get it. Take the catch method.

the vue background project needs to log in. When adjusting the API, it is found that every fetch request is returned. However, due to not going through the then method, you can"t get the response, and go straight to catch, because of cross-domain problems.

clipboard.png

clipboard.png

clipboard.png

clipboard.png

Mar.16,2021

  1. params is the GET parameter. Take a look at the request link you sent out, which may lead to a backend parsing error
  2. . When
  3. reject, print out the error

content-type and accept for header remember to specify. It's usually application/json.

Menu