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"