3👍
In axios, you must use res.data to get the qcm data, like this:
axios.get(url).then(res => {
this.qcm = res.data
}).catch(err => {
//handle when an error occur
})
0👍
Your JSON structure is incorrect, you’re missing a ” after “_id it should be:
[{"_id":"1","title":"test qcm"},{"_id":"2","title":"kkkk"}]
- [Vuejs]-Problem with Vee-validate and Vuetify, Error in render: "TypeError: Cannot read property '$vuetify' of null"
- [Vuejs]-Connecting html pages to vue page
Source:stackexchange.com