1. Select a file locally and use the on-change attribute of el-upload to obtain the uploaded file object
2. Send the file object to the interface. The interface fails to recognize the file
3. Use the input tag, using the input tag onFileChange property, obtain the file object, found interface no problem
4. Print out two file objects and find that the el-upload file is [Object object], while the prop of the input file is directly file
El-upload gets the raw property of the object, which is the file we want
handleFileChange(file, fileList) { this.File.push(fileList[0].raw); // Here we must use raw to get the file object we want},Copy the code