0👍
try this:
this.$axios.
get(this.$baseUrl + 'job/result/'+jobid).
then(response =>
{
this.jobs = response.data
}
)
by doing this, you are passing the response to your jobs
data
- [Vuejs]-Vue.Js, my function is called many times for no reason
- [Vuejs]-[Vue warn]: Error in render: "TypeError: Unable to get property 'Id' of undefined or null reference
0👍
Return your axios
result when you calling this.
Example:
getResult: function(jobid)
{
return this.$axios.get(this.$baseUrl + 'job/result/'+jobid).
then(response =>
{
return response.data
})
}
Source:stackexchange.com