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
Change the response type to: application/json
What does the front end use to send requests? It should be the response type. Set to json .
You can check out my writing of a Baidu editor plug-in for Flask, but using python