Additional parameters are passed when el-upload uploads files in elementUI

In the company's vue project, the file upload is a separate interface that has been used previously, that is, a simple upload file interface. After uploading the file ID, the file association binding relationship interface is called. The upload code is as follows: Uploaded url address, tokens in guards, etc.

Later, because the background personnel optimized the interface, the upload and save binding relationship interfaces were merged into one. Here you need to pass other parameters when you upload the file. Search the official website. There is a special: data attribute to pass additional parameters. That is as follows: data = "paramsData"

 

H-L
Published 8 original articles · Likes5 · Visits 40,000+

Guess you like

Origin blog.csdn.net/helenwei2017/article/details/103251341