We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script setup> import { reactive } from 'vue' import Form from 'vform' const form = reactive(new Form({ phone: null, password: null, })); const onSubmit = async () => { const response = await axios.post('/api/login', form) console.log(response) } </script>
The text was updated successfully, but these errors were encountered:
You need to provide the data instead of the full Form instance.
Use this instead const response = await axios.post('/api/login', form.data())
const response = await axios.post('/api/login', form.data())
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: