I have used the interface this week, and in the process of using it, the backend provides an interface for uploading pictures, and I need to use node to encapsulate it before using it, which is still a problem encountered.
Step 1: Need to install some plugins
Step 2: Just use node to encapsulate the interface
For the formdata.append('userId', userId) above, you need to look at the parameters given by the backend interface, and write as many parameters as there are. As for using this interface, axios is basically the same as using ajax before.