0👍
I think ‘v-model’ can be set for options.
or
const SignupData={
occupation:this.selectedRole.value
}
0👍
you have to pass your params in a object, you have two options:
with desctructoring of your SignupData
const
axios.post('http://34.61.88.0:3000/api/newuser', {
...SignupData,
})
or
axios.post('http://34.61.88.0:3000/api/newuser', {
occupation: this.selectedRole,
})
- [Vuejs]-NuxtJs SSR configuration
- [Vuejs]-Why won't my first Vue component compile? / How to load vue-formio module?
Source:stackexchange.com