search

Home  >  Q&A  >  body text

javascript - Masters, please help me. I have been working on Baidu Editor for three days. The problem is as follows.

The vue used in my front-end project has a port under 8081, and the port uploaded to the nodejs project created with express is 3000; Personally, I feel that uploading images has nothing to do with the port;

My front-end can successfully upload images to the back-end. I want to return the image address of the background after uploading,

Front-end receiving information

Front-end information error

I really don’t know the reason. Anyone who knows, please give me some advice. Thank you

某草草某草草2730 days ago522

reply all(3)I'll reply

  • 某草草

    某草草2017-05-31 10:39:20

    Change the response type to: application/json

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-31 10:39:20

    What does the front end use to send requests? It should be the response type. Set to json .

    reply
    0
  • PHP中文网

    PHP中文网2017-05-31 10:39:20

    You can check out my writing of a Baidu editor plug-in for Flask, but using python

    reply
    0
  • Cancelreply