I am getting object Object
in the select dropdown list
Here is my code
<q-select v-model="product_category" :options="options" label="Project Category" />
Script code
data () {
return {
options: [],
}
},
created () {
this.$axios.get([
'http://127.0.0.1:8000/api/lailen-inventory/categories'
])
.then(res => {
this.options = res.data.categories
})
}
You could make your value an object containing the type and id. Like this: