how to refresh page when submitting a form in vue code example
Example: vue submit reloads page
<form @submit.prevent="onSubmit"></form>
<script>
export default {
methods: {
onSubmit () {
// Do something...
}
}
};
</script>
<form @submit.prevent="onSubmit"></form>
<script>
export default {
methods: {
onSubmit () {
// Do something...
}
}
};
</script>