1👍
If you just need to request http://localhost:5000/trackers/{{id}}
,
you can build the request url like this:
...
axios.get('http://localhost:5000/trackers/' + id)
...
- [Vuejs]-Error: render function or template not defined in component: anonymous
- [Vuejs]-Algolia Search and Nested Array
0👍
Can you try once with the following code?
mounted() {
axios.get(`http://localhost:5000/trackers/${id}`)
.then((resp ) => console.log(resp.data))
.catch((err) => console.log(err.response))
let id = localStorage['id']
return{
id
}
}
- [Vuejs]-How to handle events using Electron + Vue (SPA)
- [Vuejs]-How to see changes in new data generated in a vue component?
Source:stackexchange.com