Home > front end >  Vue - Element - Admin request () method of the POST data format for the request Payload FormData ins
Vue - Element - Admin request () method of the POST data format for the request Payload FormData ins

Time:02-10

I have a project, using the Vue - Element - Admin transformation, now is to submit the form data in the request () method of the POST data format for the request content, is the json format, because back-end process has been completed and is through the request "XXX" acquired, now should be how to change the front-end code make it conform to the requirements of the formdata submission,

CodePudding user response:

Can try
His new a form element, and then set the json data to the form elements, then set the action of the form for you to submit a url, and then call form. Submit ()
  • Related