I have a scenario where I need to submit data from two different forms (form1 and form2) to the server in a single request when the Save button is clicked. How can I achieve this? Thanks for any help!
Here is the code I currently have:
<template>
<div>
<form1></form1>
<form2></form2>
<button type="button" @click="saveData()">Save</button>
</div>
</template>
<script>
export default {
methods: {
saveData() {
//post data form1 and form2 to server
}
}
}
</script>